comparison tests/run-tests.py @ 15940:4bc35496136f stable

tests: add 'set -x' to the .t sh scripts in run-tests.py debug mode This makes -d output much more readable when debugging the test framework or very strange test failures.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 14 Jan 2012 01:55:50 +0100
parents 44a371823f83
children af289d6cd422
comparison
equal deleted inserted replaced
15939:f57f891eb88e 15940:4bc35496136f
596 f = open(test) 596 f = open(test)
597 t = f.readlines() 597 t = f.readlines()
598 f.close() 598 f.close()
599 599
600 script = [] 600 script = []
601 if options.debug:
602 script.append('set -x\n')
601 if os.getenv('MSYSTEM'): 603 if os.getenv('MSYSTEM'):
602 script.append('alias pwd="pwd -W"\n') 604 script.append('alias pwd="pwd -W"\n')
603 for n, l in enumerate(t): 605 for n, l in enumerate(t):
604 if not l.endswith('\n'): 606 if not l.endswith('\n'):
605 l += '\n' 607 l += '\n'