helpful hint

This commit is contained in:
Craig Dowell
2008-04-01 17:05:54 -07:00
parent 5a8d264371
commit 8dc44fbfaf
2 changed files with 14 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ def main(tests = None, testdir = None):
print "PASS " + test
else:
bad.append(test)
print "FAIL ", test
print "FAIL " + test
return len(bad) > 0

View File

@@ -46,5 +46,17 @@ def run_test(verbose, generate, refDirName, testName):
diffCmd = "diff traces " + repoName + refDirName + \
" > /dev/null 2>&1"
return os.system(diffCmd)
rc = os.system(diffCmd)
if rc:
print "----------"
print "Traces differ in test: test-" + testName
print "Reference traces in directory: " + repoName + \
refDirName
print "Traces in directory: traces"
print "Rerun regression test as: " + \
"\"python regression.py test-" + testName + "\""
print "Then do \"diff -u traces " + repoName + refDirName + \
"\" for details"
print "----------"
return rc