summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-13 20:35:10 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-13 20:35:36 +0200
commita5d355683e577f018ceba2fbfdfac98bcc88bb48 (patch)
treee984e286f058e32d1088b4c781e15d8058516152 /cscript
parent4d03b76ff759e30ea079944c31a87e2b3e7a21ac (diff)
Pass environment prefix to test runner.
Diffstat (limited to 'cscript')
-rw-r--r--cscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/cscript b/cscript
index 52d7e914..618b2fb9 100644
--- a/cscript
+++ b/cscript
@@ -81,6 +81,8 @@ def make_doxygen(target):
def test(target, options, test):
target.set('LC_ALL', 'C')
cmd = 'run\\tests ' if target.platform == 'windows' else 'run/tests '
+ if target.environment_prefix:
+ cmd += '-e %s' % target.environment_prefix
if test is not None:
cmd += '-t %s' % test
target.command(cmd)