From: David Spickett Date: Fri, 1 Oct 2021 09:44:44 +0000 (+0000) Subject: Revert "[libcxx][test] Use python specified by build rather than system default python" X-Git-Tag: upstream/15.0.7~29955 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81d2cea6902e70c8c29b8b09f56d0c626e093a40;p=platform%2Fupstream%2Fllvm.git Revert "[libcxx][test] Use python specified by build rather than system default python" 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. --- diff --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py index 94e4490..1204304 100644 --- a/libcxx/utils/libcxx/test/features.py +++ b/libcxx/utils/libcxx/test/features.py @@ -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