# HG changeset patch # User Mads Kiilerich # Date 2012-01-14 00:55:50 # Node ID 4bc35496136fa8b634c51bc9479ed5282bdfb3c7 # Parent f57f891eb88e0988e90a3824cfab2116b55e9248 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. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -598,6 +598,8 @@ def tsttest(test, wd, options, replaceme 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):