summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
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)