Fix up for new cdist.
authorCarl Hetherington <cth@carlh.net>
Mon, 13 Jun 2016 12:46:18 +0000 (13:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 13 Jun 2016 12:46:18 +0000 (13:46 +0100)
cscript

diff --git a/cscript b/cscript
index c7e8a85172129c72541347215c6a4ef35824fc9c..d84ff9aaa768bae8675981e62bfe89393fb451c2 100644 (file)
--- 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)