changeset 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 f57f891eb88e
children af289d6cd422
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Thu Jan 19 16:05:01 2012 -0600
+++ b/tests/run-tests.py	Sat Jan 14 01:55:50 2012 +0100
@@ -598,6 +598,8 @@
     f.close()
 
     script = []
+    if options.debug:
+        script.append('set -x\n')
     if os.getenv('MSYSTEM'):
         script.append('alias pwd="pwd -W"\n')
     for n, l in enumerate(t):