Fix running single tests on Windows.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index 1d206dbfd94f96af21596c21a86261ea77fc57a0..9e7ba447dc863c9c5ed9f80719ea47e6de4b1a85 100644 (file)
--- a/cscript
+++ b/cscript
@@ -737,11 +737,11 @@ def make_manual(target):
 def test(target, options, test):
     target.set('LC_ALL', 'C')
     if target.platform == 'windows':
-        cmd = 'run\\tests'
+        cmd = 'run\\tests '
     else:
         cmd = 'run/tests '
     if target.debug:
         cmd += '--backtrace '
     if test is not None:
-        cmd += '--run_test=%s' % test
+        cmd += '-%s' % test
     target.command(cmd)