tests/run-tests.py
changeset 21441 213339e9bada
parent 21440 ece127734db1
child 21442 867a1116be3c
equal deleted inserted replaced
21440:ece127734db1 21441:213339e9bada
  1328             # Need to stash away the TestResult since we do custom things
  1328             # Need to stash away the TestResult since we do custom things
  1329             # with it.
  1329             # with it.
  1330             def run(self, result):
  1330             def run(self, result):
  1331                 self._result = result
  1331                 self._result = result
  1332 
  1332 
  1333                 return super(MercurialTest, self).run(result)
  1333                 try:
       
  1334                     self.runTest()
       
  1335                 except KeyboardInterrupt:
       
  1336                     raise
       
  1337                 except self.failureException:
       
  1338                     result.addFailure(self, sys.exc_info())
       
  1339                 except Exception:
       
  1340                     result.addError(self, sys.exc_info())
       
  1341                 else:
       
  1342                     result.addSuccess(self)
  1334 
  1343 
  1335             def runTest(self):
  1344             def runTest(self):
  1336                 code, tname, msg = t.run()
  1345                 code, tname, msg = t.run()
  1337 
  1346 
  1338                 if code == '!':
  1347                 if code == '!':