diff mbox series

[2/6] scripts/patchtest: don't stop at an empty patch in a directory

Message ID 20261204174107.1295971-3-tgamblin@baylibre.com
State New
Headers show
Series patchtest: script fixes, improve recipe parsing | expand

Commit Message

Trevor Gamblin Dec. 4, 2026, 5:41 p.m. UTC
When given a directory, patchtest returned as soon as it found an empty
file, so none of the patches after it were tested. Report the empty
patch and carry on with the rest, still returning a failure at the end.

AI-Generated: Uses Claude Code Opus 5.5

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
 scripts/patchtest | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/scripts/patchtest b/scripts/patchtest
index 86271a40c1..4bed3c6d88 100755
--- a/scripts/patchtest
+++ b/scripts/patchtest
@@ -209,9 +209,9 @@  def main():
             break
 
         if os.path.getsize(patch) == 0:
-            logger.error('patchtest: patch is empty')
-            signal.signal(signal.SIGINT, previous_sigint)
-            return 1
+            logger.error('patchtest: patch %s is empty' % patch)
+            ret = 1
+            continue
 
         logger.info('Testing patch %s' % patch)