[libc++] Execute tests using an external shell
authorLouis Dionne <ldionne@apple.com>
Tue, 31 Mar 2020 15:17:11 +0000 (11:17 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 31 Mar 2020 15:31:39 +0000 (11:31 -0400)
This makes it closer to how one would run the tests by hand, and it is
also closer to how the SSHExecutor runs the tests remotely. It also
allows using shell builtins in .sh.cpp tests when using %{exec}.

libcxx/utils/run.py

index 3e9a470..6a89a2b 100644 (file)
@@ -49,7 +49,7 @@ def main():
             exit(1)
 
     # Run the executable with the given environment in the given working directory
-    return subprocess.call(remaining, cwd=args.working_directory, env=env)
+    return subprocess.call(' '.join(remaining), cwd=args.working_directory, env=env, shell=True)
 
 if __name__ == '__main__':
     exit(main())