summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-28 13:20:16 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-28 13:20:16 +0100
commit82dc4081b592d7078fd63996955945038672fc41 (patch)
treeaad80b3e957574b152ae4f8d20a8b958fab2552d /cscript
parent77c1f7b21d369433ae7fd7669e454d48b8ac2c0e (diff)
Try to allow debugging during test runs.
Diffstat (limited to 'cscript')
-rw-r--r--cscript10
1 files changed, 6 insertions, 4 deletions
diff --git a/cscript b/cscript
index 41cb339a1..c533dac25 100644
--- a/cscript
+++ b/cscript
@@ -381,7 +381,9 @@ def make_manual(target):
def test(target, test):
if target.platform != 'windows':
target.set('LC_ALL', 'C')
- if test is None:
- target.command('run/tests')
- else:
- target.command('run/tests --run_test=%s' % test)
+ cmd = 'run/tests '
+ if target.debug:
+ cmd += '--backtrace '
+ if test is not None:
+ cmd += '--run_test=%s' % test
+ target.command(cmd)