Show More
@@ -251,9 +251,8 b' def parsehghaveoutput(lines):' | |||||
251 |
|
251 | |||
252 | return missing, failed |
|
252 | return missing, failed | |
253 |
|
253 | |||
254 | def showdiff(expected, output): |
|
254 | def showdiff(expected, output, ref, err): | |
255 | for line in difflib.unified_diff(expected, output, |
|
255 | for line in difflib.unified_diff(expected, output, ref, err): | |
256 | "Expected output", "Test output"): |
|
|||
257 | sys.stdout.write(line) |
|
256 | sys.stdout.write(line) | |
258 |
|
257 | |||
259 | def findprogram(program): |
|
258 | def findprogram(program): | |
@@ -452,13 +451,13 b' def runone(options, test, skips, fails):' | |||||
452 | if not options.verbose: |
|
451 | if not options.verbose: | |
453 | skips.append((test, msg)) |
|
452 | skips.append((test, msg)) | |
454 | else: |
|
453 | else: | |
455 | print "\nSkipping %s: %s" % (test, msg) |
|
454 | print "\nSkipping %s: %s" % (testpath, msg) | |
456 | return None |
|
455 | return None | |
457 |
|
456 | |||
458 | def fail(msg): |
|
457 | def fail(msg): | |
459 | fails.append((test, msg)) |
|
458 | fails.append((test, msg)) | |
460 | if not options.nodiff: |
|
459 | if not options.nodiff: | |
461 | print "\nERROR: %s %s" % (test, msg) |
|
460 | print "\nERROR: %s %s" % (testpath, msg) | |
462 | return None |
|
461 | return None | |
463 |
|
462 | |||
464 | vlog("# Test", test) |
|
463 | vlog("# Test", test) | |
@@ -565,7 +564,7 b' def runone(options, test, skips, fails):' | |||||
565 | else: |
|
564 | else: | |
566 | fail("output changed") |
|
565 | fail("output changed") | |
567 | if not options.nodiff: |
|
566 | if not options.nodiff: | |
568 | showdiff(refout, out) |
|
567 | showdiff(refout, out, ref, err) | |
569 | ret = 1 |
|
568 | ret = 1 | |
570 | elif ret: |
|
569 | elif ret: | |
571 | mark = '!' |
|
570 | mark = '!' |
General Comments 0
You need to be logged in to leave comments.
Login now