Browse files

Support diff that returns "No differences encountered" when comparing…

… test results
  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Jun 3, 2015
1 parent 0dc4eda commit 4716f426332d02eb6841c509658b8a709cce9318
Showing with 1 addition and 1 deletion.
  1. +1 −1 testing/
@@ -26,7 +26,7 @@ def compare_ok(self,got_file,expected_file,name):
return (True,'%s absent' % expected_file)
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,'')

0 comments on commit 4716f42

Please sign in to comment.