comparison tests/run-tests.py @ 2409:4068d6a7a99e

Fix diff header (line endings) for failed test output in run-tests.py.
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 08 Jun 2006 15:06:31 +0200
parents 6ed46bad9530
children 2264b2b077a1
comparison
equal deleted inserted replaced
2408:6ed46bad9530 2409:4068d6a7a99e
49 lines.append(text[i:n+1]) 49 lines.append(text[i:n+1])
50 i = n + 1 50 i = n + 1
51 51
52 def show_diff(expected, output): 52 def show_diff(expected, output):
53 for line in difflib.unified_diff(expected, output, 53 for line in difflib.unified_diff(expected, output,
54 "Expected output", "Test output", lineterm=''): 54 "Expected output", "Test output"):
55 sys.stdout.write(line) 55 sys.stdout.write(line)
56 56
57 def find_program(program): 57 def find_program(program):
58 """Search PATH for a executable program""" 58 """Search PATH for a executable program"""
59 for p in os.environ.get('PATH', os.defpath).split(os.pathsep): 59 for p in os.environ.get('PATH', os.defpath).split(os.pathsep):