[PATCH 1 of 3] tests: add 'set -x' to the .t sh scripts in run-tests.py debug mode
Mads Kiilerich
mads at kiilerich.com
Fri Jan 20 00:32:01 UTC 2012
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1326502550 -3600
# Branch stable
# Node ID dda12de35d0569ac15c75af4419c2a28487378e9
# Parent 7ed056f1e97db94338c7ef1c49fd5dd49870f3e3
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 @@
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):
More information about the Mercurial-devel
mailing list