From 0732be88d054db33fa0ca479eab9988c8e6be42e Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 13 Oct 2004 08:57:08 +0000 Subject: Load /tmp/tmp.zzO3vU/libxml2-2.6.14 into packages/libxml2/branches/upstream/current. --- check-xinclude-test-suite.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'check-xinclude-test-suite.py') diff --git a/check-xinclude-test-suite.py b/check-xinclude-test-suite.py index c0af1f9..163ea32 100755 --- a/check-xinclude-test-suite.py +++ b/check-xinclude-test-suite.py @@ -82,6 +82,8 @@ def runTest(test, basedir): return -1 expected = None + outputfile = None + diff = None if type != 'error': output = test.xpathEval('string(output)') if output == 'No output file.': @@ -98,6 +100,7 @@ def runTest(test, basedir): try: f = open(output) expected = f.read() + outputfile = output except: print "Result for %s unreadable: %s" % (id, output) @@ -112,6 +115,8 @@ def runTest(test, basedir): result = doc.serialize() if result != expected: print "Result for %s differs" % (id) + open("xinclude.res", "w").write(result) + diff = os.popen("diff %s xinclude.res" % outputfile).read() doc.freeDoc() else: @@ -157,6 +162,9 @@ def runTest(test, basedir): log.write(" ----\n%s ----\n" % (error_msg)) error_msg = '' log.write("\n") + if diff != None: + log.write("diff from test %s:\n" %(id)) + log.write(" -----------\n%s\n -----------\n" % (diff)); return 0 -- cgit v1.2.3