projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow running tests from trees made with cdist.
[dcpomatic.git]
/
cscript
diff --git
a/cscript
b/cscript
index ba680eb0e829d36250096fc5dc0b72668943e2eb..eb2c8e4364ceb19287eca839beabc46f732d4b81 100644
(file)
--- a/
cscript
+++ b/
cscript
@@
-925,7
+925,11
@@
def test(target, options, test):
if target.platform == 'windows':
cmd = 'run\\tests '
else:
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
+ if target.platform != 'windows':
+ cmd += ' --check --log_level=test_suite '
if target.debug:
cmd += '--backtrace '
if test is not None:
if target.debug:
cmd += '--backtrace '
if test is not None: