summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/LedgerHarness.py4
-rwxr-xr-xtest/RegressTests.py4
2 files changed, 5 insertions, 3 deletions
diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py
index 7b4dfa83..564a4d32 100755
--- a/test/LedgerHarness.py
+++ b/test/LedgerHarness.py
@@ -112,8 +112,10 @@ class LedgerHarness:
sys.stdout.write(".")
self.succeeded += 1
- def failure(self):
+ def failure(self, name=None):
sys.stdout.write("E")
+ if name:
+ sys.stdout.write("[%s]" % name)
self.failed += 1
def exit(self):
diff --git a/test/RegressTests.py b/test/RegressTests.py
index def202e4..da5d92ca 100755
--- a/test/RegressTests.py
+++ b/test/RegressTests.py
@@ -148,14 +148,14 @@ class RegressFile(object):
if success:
harness.success()
else:
- harness.failure()
+ harness.failure(os.path.basename(self.filename))
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)
- harness.failure()
+ harness.failure(os.path.basename(self.filename))
def run_tests(self):
test = self.read_test()