cscript can now run tests on Windows.
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Oct 2020 13:14:26 +0000 (15:14 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Oct 2020 13:14:26 +0000 (15:14 +0200)
cscript

diff --git a/cscript b/cscript
index dc8e34e4169f2b7553bdddadb56129145a698fdd..61dd60c0690e5ebd609f938a08c0504174be0a57 100644 (file)
--- a/cscript
+++ b/cscript
@@ -740,11 +740,10 @@ def make_manual(target):
     return [os.path.abspath('pdf'), os.path.abspath('html'), os.path.abspath('colour.pdf')]
 
 def test(target, options, test):
-    if target.platform != 'windows':
-        target.set('LC_ALL', 'C')
-        cmd = 'run/tests '
-        if target.debug:
-            cmd += '--backtrace '
-        if test is not None:
-            cmd += '--run_test=%s' % test
-        target.command(cmd)
+    target.set('LC_ALL', 'C')
+    cmd = 'run/tests '
+    if target.debug:
+        cmd += '--backtrace '
+    if test is not None:
+        cmd += '--run_test=%s' % test
+    target.command(cmd)