Fix test runner.
authorCarl Hetherington <cth@carlh.net>
Sat, 11 Jun 2016 23:40:36 +0000 (00:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 11 Jun 2016 23:40:36 +0000 (00:40 +0100)
cscript

diff --git a/cscript b/cscript
index 25b354cb6e9d33a6edca602ecc184711910591e1..db9cf8720c36f6e5d090200f6dccd0cc4e08faf5 100644 (file)
--- a/cscript
+++ b/cscript
@@ -24,7 +24,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)