| Message ID | 20261204174107.1295971-4-tgamblin@baylibre.com |
|---|---|
| State | New |
| Headers | show |
| Series | patchtest: script fixes, improve recipe parsing | expand |
diff --git a/scripts/patchtest b/scripts/patchtest index 4bed3c6d88..4c74056065 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -187,7 +187,10 @@ def main(): return 1 if os.path.isdir(patch_path): - patch_list = [os.path.join(patch_path, filename) for filename in sorted(os.listdir(patch_path))] + # Skip results logged by an earlier run with --log-results + patch_list = [os.path.join(patch_path, filename) + for filename in sorted(os.listdir(patch_path)) + if not filename.endswith('.testresult')] else: patch_list = [patch_path]
With --log-results, each patch's results are written next to it as <patch>.testresult. Testing the same directory again then treated those files as patches, and printed an error for each. Leave them out of the patch list. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> --- scripts/patchtest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)