summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-04-26 15:59:26 +0200
committerMichael Stahl <mstahl@redhat.com>2016-04-27 15:52:42 +0200
commit66f769feb25f62042ac101132ce73043e6bcd135 (patch)
tree35d313f74d379f94529944fdc1ea9aea1e396f37 /bin
parent61e8275de6043bbb888feea02ea8c7bea3e6abe8 (diff)
convwatch: logExceptionInvoke is kind of pointless now
... that runLoadPrintFileTests catches the exceptions anyway. Change-Id: I6441551558e057427a9732451415f4c449a3609a
Diffstat (limited to 'bin')
-rw-r--r--bin/convwatch.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/bin/convwatch.py b/bin/convwatch.py
index 4175c2f14a96..abc88adcef48 100644
--- a/bin/convwatch.py
+++ b/bin/convwatch.py
@@ -214,19 +214,6 @@ def simpleInvoke(connection, test):
finally:
connection.postTest()
-def logExceptionInvoke(connection, test):
- try:
- connection.preTest()
- test.run(connection.getContext())
- except KeyboardInterrupt:
- raise # Ctrl+C should work
- except:
- estr = traceback.format_exc()
- log("logExceptionInvoke: FAILED with exception:\n" + estr)
- raise
- finally:
- connection.postTest()
-
def retryInvoke(connection, test):
tries = 5
while tries > 0:
@@ -255,6 +242,8 @@ def runConnectionTests(connection, invoker, tests):
raise # Ctrl+C should work
except:
failed.append(test.file)
+ estr = traceback.format_exc()
+ log("... FAILED with exception:\n" + estr)
return failed
finally:
connection.tearDown()
@@ -348,7 +337,7 @@ def runLoadPrintFileTests(opts, dirs, suffix, reference):
tests = (LoadPrintFileTest(file, prtsuffix) for file in files)
connection = PersistentConnection(opts)
# connection = PerTestConnection(opts)
- failed = runConnectionTests(connection, logExceptionInvoke, tests)
+ failed = runConnectionTests(connection, simpleInvoke, tests)
print("all printed: FAILURES: " + str(len(failed)))
for fail in failed:
print(fail)