Skip to content

Commit

Permalink
Fix execute.py
Browse files Browse the repository at this point in the history
Failed when there were inputs.
  • Loading branch information
brentleyjones committed Nov 29, 2021
1 parent 5fa84fb commit 71c570c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/wrapper_common/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def execute_and_filter_output(cmd_args,
stderr=subprocess.PIPE,
env=env)
try:
stdout, stderr = proc.communicate(timeout=timeout)
stdout, stderr = proc.communicate(
input=inputstr,
timeout=timeout,
)
except subprocess.TimeoutExpired:
proc.kill()
stdout, stderr = proc.communicate()
Expand Down

0 comments on commit 71c570c

Please sign in to comment.