Browse Source

Stop assuming that test module attribute errors are about run_test

Fixes 23497, introduced when the verify test was refactored into
a test script.
teor 6 years ago
parent
commit
f1835b17ec
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/chutney/TorNet.py

+ 2 - 2
lib/chutney/TorNet.py

@@ -1118,8 +1118,8 @@ def runConfigFile(verb, data):
         test_module = importlib.import_module("chutney_tests.{}".format(verb))
         try:
             return test_module.run_test(network)
-        except AttributeError:
-            print("Test {!r} has no 'run_test(network)' function".format(verb))
+        except AttributeError as e:
+            print("Error running test {!r}: {}".format(verb, e))
             return False
 
     # tell the user we don't know what their verb meant