[libc++] Don't over-quote arguments to DSL tests
authorLouis Dionne <ldionne@apple.com>
Thu, 30 Apr 2020 17:46:30 +0000 (13:46 -0400)
committerLouis Dionne <ldionne@apple.com>
Thu, 30 Apr 2020 18:23:24 +0000 (14:23 -0400)
On Windows, quoting with single-quotes is both unnecessary and incorrect.
If the arguments are properly handled by Lit (which they are), quoting
should not be necessary.

libcxx/test/libcxx/selftest/dsl/dsl.sh.py

index 5650785..2f0e737 100644 (file)
@@ -9,11 +9,11 @@
 # TODO: Unbreak this on Windows
 # UNSUPPORTED: host-windows
 
-# RUN: %{python} '%s' '%S' '%T' '%{escaped_exec}' \
-# RUN:                          '%{escaped_cxx}' \
-# RUN:                          '%{escaped_flags}' \
-# RUN:                          '%{escaped_compile_flags}' \
-# RUN:                          '%{escaped_link_flags}'
+# RUN: %{python} %s %S %T %{escaped_exec} \
+# RUN:                    %{escaped_cxx} \
+# RUN:                    %{escaped_flags} \
+# RUN:                    %{escaped_compile_flags} \
+# RUN:                    %{escaped_link_flags}
 # END.
 
 import base64
@@ -36,8 +36,8 @@ import lit.util
 
 # Steal some parameters from the config running this test so that we can
 # bootstrap our own TestingConfig.
-SOURCE_ROOT, EXEC_PATH, EXEC, CXX, FLAGS, COMPILE_FLAGS, LINK_FLAGS = sys.argv[1:]
-sys.argv = sys.argv[:1]
+SOURCE_ROOT, EXEC_PATH, EXEC, CXX, FLAGS, COMPILE_FLAGS, LINK_FLAGS = sys.argv[1:8]
+sys.argv[1:8] = []
 
 class SetupConfigs(unittest.TestCase):
     """