[PATCH] D51511: lit: Use sys.executable for executing builtin commands

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 31 13:16:45 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL341244: lit: Use sys.executable for executing builtin commands (authored by tstellar, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D51511

Files:
  llvm/trunk/utils/lit/lit/TestRunner.py


Index: llvm/trunk/utils/lit/lit/TestRunner.py
===================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py
+++ llvm/trunk/utils/lit/lit/TestRunner.py
@@ -879,7 +879,7 @@
         # Expand all glob expressions
         args = expand_glob_expressions(args, cmd_shenv.cwd)
         if is_builtin_cmd:
-            args.insert(0, "python")
+            args.insert(0, sys.executable)
             args[1] = os.path.join(builtin_commands_dir ,args[1] + ".py")
 
         # On Windows, do our own command line quoting for better compatibility


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51511.163582.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180831/f6f4fbe4/attachment.bin>


More information about the llvm-commits mailing list