summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
Diffstat (limited to 'cscript')
-rw-r--r--cscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/cscript b/cscript
index ba680eb0e..37f824fb1 100644
--- a/cscript
+++ b/cscript
@@ -925,7 +925,10 @@ def test(target, options, test):
if target.platform == 'windows':
cmd = 'run\\tests '
else:
- cmd = 'run/tests --check --log_level=test_suite '
+ cmd = 'run/tests '
+ if target.environment_prefix:
+ cmd += '-e %s ' % target.environment_prefix
+ cmd += ' --check --log_level=test_suite '
if target.debug:
cmd += '--backtrace '
if test is not None: