[PATCH] D135067: [lit] RUN commands without stdin.

Christian Sigg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 3 02:12:59 PDT 2022


csigg created this revision.
Herald added subscribers: sanjoy.google, delcypher.
Herald added a project: All.
csigg requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This changes the initial stdin of a lit RUN command to be None, which prevents issues like that one fixed in commit 720dd81 <https://reviews.llvm.org/rG720dd814ba8707284cc3806f566334de75aee14d>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135067

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


Index: llvm/utils/lit/lit/TestRunner.py
===================================================================
--- llvm/utils/lit/lit/TestRunner.py
+++ llvm/utils/lit/lit/TestRunner.py
@@ -640,7 +640,7 @@
 
     procs = []
     proc_not_counts = []
-    default_stdin = subprocess.PIPE
+    default_stdin = None
     stderrTempFiles = []
     opened_files = []
     named_temp_files = []


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135067.464634.patch
Type: text/x-patch
Size: 385 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221003/c1aa28d5/attachment.bin>


More information about the llvm-commits mailing list