| Message ID | 20261204174107.1295971-5-tgamblin@baylibre.com |
|---|---|
| State | New |
| Headers | show |
| Series | patchtest: script fixes, improve recipe parsing | expand |
diff --git a/scripts/patchtest b/scripts/patchtest index 4c74056065..74184f107a 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -221,7 +221,8 @@ def main(): log_path = None if PatchtestParser.log_results: log_path = patch + ".testresult" - with open(log_path, "a") as f: + # Start a new file, so that results from an earlier run aren't kept + with open(log_path, "w") as f: f.write("Patchtest results for patch '%s':\n\n" % patch) try:
With --log-results, the results for each patch were appended to <patch>.testresult, so testing a patch again left the earlier results in the file as well. Start a new file for each run instead. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> --- scripts/patchtest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)