Skip to content

Commit

Permalink
Capture and combine fuzzer stdout and stderr in one stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Jul 30, 2024
1 parent e109f12 commit f731f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run_spy(tid, tnum, spy, logfiles, verbose):
] + logfiles
if verbose >= 3:
print(f"{prefix(tid, tnum)} Running {shlex.join(cmd)}", flush=True)
proc = subprocess.run(cmd, capture_output=True)
proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if proc.returncode == 0:
return
return proc
Expand All @@ -64,7 +64,7 @@ def run_fuzzer(
if verbose >= 3:
print(f"{prefix(tid, tnum)} Running {shlex.join(cmd)}", flush=True)
try:
proc = subprocess.run(cmd, capture_output=True)
proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if proc.returncode == 0:
spy_proc = None
if spy:
Expand Down

0 comments on commit f731f24

Please sign in to comment.