From 7e0aaadecd33d95df41f86173fc63eee866b6f5f Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Thu, 13 Nov 2025 10:52:27 -0600 Subject: [PATCH] feat: add repro command to summary (#10930) --- extra/hcqfuzz/tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extra/hcqfuzz/tools.py b/extra/hcqfuzz/tools.py index 2f58528136..5b9b1d9504 100644 --- a/extra/hcqfuzz/tools.py +++ b/extra/hcqfuzz/tools.py @@ -51,11 +51,15 @@ def create_report(dev, test, result, stdout, stderr): dmesg_output = subprocess.check_output(["sudo", "dmesg", "--ctime", "--color=never"], text=True) with open(dmesg_path, "w") as f: f.write(dmesg_output) + env_vars = " ".join(f"{k}={v}" for k, v in test.env.items()) + reproduce_cmd = f"{env_vars} {test.cmd}" + summary_path = os.path.join(report_path, "summary.txt") with open(summary_path, "w") as f: f.write(f"Test: {test.name()}\n") f.write(f"Dev params: {vars(dev)}\n") f.write(f"Test params: {vars(test)}\n") + f.write(f"Reproduce cmd: {reproduce_cmd}\n") f.write(f"Exit Code: {result}\n") print(f"Crash report saved to {report_path}")