summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-13 13:46:18 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-13 13:46:18 +0100
commit3bd7e5fb638e7e1084b20de2d4c74fad61434eb1 (patch)
treec2989133413ed210eb11de3f3f9ade38c5fc79c0 /cscript
parentd927e9b913606f4fc982885c7582ecaf0e3c5a1a (diff)
Fix up for new cdist.
Diffstat (limited to 'cscript')
-rw-r--r--cscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/cscript b/cscript
index c7e8a851..d84ff9aa 100644
--- a/cscript
+++ b/cscript
@@ -27,7 +27,10 @@ def make_doxygen(target):
target.command('doxygen')
return os.path.abspath('build/doc/html')
-def test(target):
+def test(target, test):
if target.platform != 'windows':
target.set('LC_ALL', 'C')
- target.command('run/tests')
+ if test is None:
+ target.command('run/tests')
+ else:
+ target.command('run/tests --run_test=%s' % test)