run-tests: don't trap exceptions in Test.runTest()
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Apr 2014 18:23:48 -0700
changeset 21500 130cc0d7bfde
parent 21499 d22f4e72dcd5
child 21501 98a0c58ee200
run-tests: don't trap exceptions in Test.runTest() Exceptions are all handled in Test.run(). This code was redundant since the unittest test wrapper class was merged into Test.
tests/run-tests.py
--- a/tests/run-tests.py	Sun Apr 20 18:20:24 2014 -0700
+++ b/tests/run-tests.py	Sun Apr 20 18:23:48 2014 -0700
@@ -485,15 +485,10 @@
 
         vlog('# Test', self.name)
 
-        try:
-            ret, out = self._run(replacements, env)
-            self._finished = True
-            self._ret = ret
-            self._out = out
-        except KeyboardInterrupt:
-            raise
-        except Exception, e:
-            return self.fail('Exception during execution: %s' % e, 255)
+        ret, out = self._run(replacements, env)
+        self._finished = True
+        self._ret = ret
+        self._out = out
 
         def describe(ret):
             if ret < 0: