From cd3d816f93038e9cb35aaf8b8e0852dc8bb4cd49 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Fri, 23 Dec 2011 13:57:34 +0100 Subject: fix for recently introduced bug: If no actual image was generated, we failed to output the expected image diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index 87ac3df..5e25052 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -158,7 +158,7 @@ def parsetest(teststring): hits = map( lambda pattern: ezsearch(pattern,teststring), patterns ) test = Test(hits[0],hits[1],hits[2]=='Passed',hits[3],hits[4],hits[5],hits[6],hits[7],teststring) if len(test.actualfile) > 0: test.actualfile_data = tryread(test.actualfile) - if len(test.actualfile) > 0: test.expectedfile_data = tryread(test.expectedfile) + if len(test.expectedfile) > 0: test.expectedfile_data = tryread(test.expectedfile) return test def parselog(data): -- cgit v0.10.1