Skip to content

Commit

Permalink
[lldb/Scripts] proc.returncode is set in proc.communicate
Browse files Browse the repository at this point in the history
Make sure proc.returncode has been assigned before we compare it to 0.
  • Loading branch information
JDevlieghere committed Apr 21, 2020
1 parent cf30aaf commit 116c2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/scripts/reproducer-replay.py
Expand Up @@ -15,8 +15,8 @@ def run_reproducer(path):
stderr=subprocess.PIPE)
reason = None
try:
success = proc.returncode == 0
outs, errs = proc.communicate(timeout=TIMEOUT)
success = proc.returncode == 0
result = 'PASSED' if success else 'FAILED'
if not success:
outs = outs.decode()
Expand Down

0 comments on commit 116c2da

Please sign in to comment.