diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-28 13:20:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-28 13:20:16 +0100 |
| commit | 82dc4081b592d7078fd63996955945038672fc41 (patch) | |
| tree | aad80b3e957574b152ae4f8d20a8b958fab2552d /cscript | |
| parent | 77c1f7b21d369433ae7fd7669e454d48b8ac2c0e (diff) | |
Try to allow debugging during test runs.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) |
