Skip to content

Commit

Permalink
Support diff that returns "No differences encountered" when comparing…
Browse files Browse the repository at this point in the history
… test results
  • Loading branch information
Dimitri van Heesch committed Jun 3, 2015
1 parent 0dc4eda commit 4716f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def compare_ok(self,got_file,expected_file,name):
return (True,'%s absent' % expected_file)
else:
diff = os.popen('diff -u %s %s' % (got_file,expected_file)).read()
if diff and not diff.isspace():
if diff and not diff.startswith("No differences"):
return (True,'Difference between generated output and reference:\n%s' % diff)
return (False,'')

Expand Down

0 comments on commit 4716f42

Please sign in to comment.