From 82dc4081b592d7078fd63996955945038672fc41 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 28 Jul 2016 13:20:16 +0100 Subject: Try to allow debugging during test runs. --- cscript | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cscript') 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) -- cgit v1.2.3