summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Bram <alan.bram@cornell.edu>2021-04-06 13:31:04 -0700
committerMartin Michlmayr <tbm@cyrius.com>2021-05-04 20:28:41 +0800
commited5f7ccb9c93946913ac3ecc4132bf8e42260fd3 (patch)
tree5be377cf8e8984f85fa6c7b2a15a17430fc6ac07
parent4ba80c37c068dd1839101c6c1f8ceed49f696d5f (diff)
downloadfork-ledger-ed5f7ccb9c93946913ac3ecc4132bf8e42260fd3.tar.gz
fork-ledger-ed5f7ccb9c93946913ac3ecc4132bf8e42260fd3.tar.bz2
fork-ledger-ed5f7ccb9c93946913ac3ecc4132bf8e42260fd3.zip
Show "FAILURE in exit code" when success is expected
Fixes #2023.
-rwxr-xr-xtest/RegressTests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/RegressTests.py b/test/RegressTests.py
index 7395a4c1..b20c0aa6 100755
--- a/test/RegressTests.py
+++ b/test/RegressTests.py
@@ -182,7 +182,7 @@ class RegressFile(object):
printed = True
print(" ", line,)
- if test['exitcode'] is None or test['exitcode'] == p.wait():
+ if test['exitcode'] == p.wait():
if success:
harness.success()
else:
@@ -191,10 +191,9 @@ class RegressFile(object):
print(p.stderr.read())
else:
if success: print
- if test['exitcode']:
- self.notify_user("FAILURE in exit code (%d != %d) from %s:"
- % (test['exitcode'], p.returncode, self.filename),
- test)
+ self.notify_user("FAILURE in exit code (%d != %d) from %s:"
+ % (test['exitcode'], p.returncode, self.filename),
+ test)
harness.failure(os.path.basename(self.filename))
def run_tests(self):