process timeout

This commit is contained in:
Yakov Olkhovskiy 2024-10-01 18:25:22 +00:00
parent a7da67069a
commit da525b6ab5

View File

@ -138,8 +138,11 @@ def run_fuzzer(fuzzer: str, timeout: int):
)
except subprocess.CalledProcessError as e:
# print("Command failed with error:", e)
print("Stderr output:", e.stderr)
print("Stderr output: ", e.stderr)
process_error(e.stderr)
except subprocess.TimeoutExpired as e:
print("Timeout: ", e.stderr)
process_fuzzer_output(e.stderr)
else:
process_fuzzer_output(result.stderr)