Revert "[libcxx][test] Use python specified by build rather than system default python"
authorDavid Spickett <david.spickett@linaro.org>
Fri, 1 Oct 2021 09:44:44 +0000 (09:44 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Fri, 1 Oct 2021 09:45:44 +0000 (09:45 +0000)
This reverts commit 9f641c96cb15c9752c976bff286bb57adf86acab.

The "python" command in gdb uses the python gdb is linked to,
not what "python" would give you if you used it directly in the shell.

libcxx/utils/libcxx/test/features.py

index 94e4490..1204304 100644 (file)
@@ -179,7 +179,7 @@ gdb.execute(\"quit\")"""
 
   try:
     stdout = subprocess.check_output(
-              [gdb_path, "-ex", sys.executable + " " + test_src, "--batch"],
+              [gdb_path, "-ex", "python " + test_src, "--batch"],
               stderr=subprocess.DEVNULL, universal_newlines=True)
   except subprocess.CalledProcessError:
     # We can't set breakpoint commands