Skip to content

Commit

Permalink
run_shell_cmd with QA always need pipe on stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Dec 23, 2024
1 parent 24b22a8 commit bdfc65e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions easybuild/tools/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def to_cmd_str(cmd):
executable, shell = None, False

stderr_handle = subprocess.PIPE if split_stderr else subprocess.STDOUT
stdin_handle = subprocess.PIPE if stdin else None
stdin_handle = subprocess.PIPE if stdin or qa_patterns else None

log_msg = f"Running {interactive_msg}shell command '{cmd_str}' in {work_dir}"
if thread_id:
Expand All @@ -514,9 +514,7 @@ def to_cmd_str(cmd):

if qa_patterns:
# make stdout, stderr, stdin non-blocking files
channels = [proc.stdout]
if stdin:
channels.append(proc.stdin)
channels = [proc.stdout, proc.stdin]
if split_stderr:
channels.append(proc.stderr)

Expand Down

0 comments on commit bdfc65e

Please sign in to comment.