run-tests.py: print diff if reference output not existing.
--- a/tests/run-tests.py Wed May 10 11:53:56 2006 +0200
+++ b/tests/run-tests.py Wed May 10 10:07:53 2006 -0700
@@ -182,10 +182,12 @@
f = open(ref, "r")
ref_out = f.read().splitlines()
f.close()
- if out != ref_out:
- diffret = 1
- print "\nERROR: %s output changed" % (test)
- show_diff(ref_out, out)
+ else:
+ ref_out = ''
+ if out != ref_out:
+ diffret = 1
+ print "\nERROR: %s output changed" % (test)
+ show_diff(ref_out, out)
if ret:
print "\nERROR: %s failed with error code %d" % (test, ret)
elif diffret: