Skip to content

Commit 39984b7

Browse files
author
Vasileios Karakasis
authored
Merge pull request #2476 from teojgo/bugfix/popen_default_stdin
[bugfix] Fix regression with tests that treat stdin as a tty
2 parents 923df39 + 3d2adae commit 39984b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reframe/utility/osext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def run_command_async(cmd,
106106
if isinstance(cmd, str) and not shell:
107107
cmd = shlex.split(cmd)
108108

109+
popen_args.setdefault('stdin', subprocess.DEVNULL)
109110
return subprocess.Popen(args=cmd,
110111
stdout=stdout,
111112
stderr=stderr,

0 commit comments

Comments
 (0)