tests/run-tests.py
branchstable
changeset 48874 eca367970253
parent 48873 c95e5ba4de1e
child 48875 8d31ef3017c9
--- a/tests/run-tests.py	Tue May 24 09:36:40 2022 +0200
+++ b/tests/run-tests.py	Tue May 24 09:57:53 2022 +0200
@@ -2563,19 +2563,21 @@
             else:
                 raise ValueError('Could not find output channel')
             channels[channel] = "=" + test.name[5:].split(".")[0]
+
+            r = None
             try:
                 test(result)
-                done.put(None)
             except KeyboardInterrupt:
-                done.put(None)
+                pass
             except:  # re-raises
-                done.put(('!', test, 'run-test raised an error, see traceback'))
+                r = ('!', test, 'run-test raised an error, see traceback')
                 raise
             finally:
                 try:
                     channels[channel] = ''
                 except IndexError:
                     pass
+                done.put(r)
 
         def stat():
             count = 0