From 4716f426332d02eb6841c509658b8a709cce9318 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Wed, 3 Jun 2015 22:35:10 +0200 Subject: Support diff that returns "No differences encountered" when comparing test results --- testing/runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/runtests.py b/testing/runtests.py index 64305cc..a5e82bf 100644 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -26,7 +26,7 @@ class Tester: 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,'') -- cgit v0.12