summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-10 23:21:45 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-10 23:21:45 +0100
commit656a3ebb5d0aef141e4b777cd8e0110e9e722350 (patch)
tree2424b0ebb7c8389b265fbedc3e8ed5ac5871a5c5 /cscript
parent935a34ba3cbb86576b9ccaaf0b8c5de723a128d1 (diff)
New cdist can run a specific test.
Diffstat (limited to 'cscript')
-rw-r--r--cscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/cscript b/cscript
index 08cbff2e0..6015e34d6 100644
--- a/cscript
+++ b/cscript
@@ -371,7 +371,10 @@ def make_manual(target):
target.command('pdflatex colour.tex')
return [os.path.abspath('pdf'), os.path.abspath('html'), os.path.abspath('colour.pdf')]
-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)