diff mbox series

[RFC,wrynose,4/5] yocto-check-layer: Skip initial signatures unless test_signatures runs

Message ID 20261124171356.951415-5-jose.quaresma@oss.qualcomm.com
State New
Headers show
Series yocto-check-layer runtime improvements | expand

Commit Message

Jose Quaresma Nov. 24, 2026, 5:13 p.m. UTC
From: Otavio Salvador <otavio@ossystems.com.br>

Only test_signatures compares against the world signatures dumped before
the layer is added, so a run without it, such as "--run-tests bsp", spent
a world parse on a dump it never used. Dump them only when --run-tests
selects common tests, as it does by default.

Tested on meta-freescale with "--run-tests bsp": no initial dump, same
results.

Suggested-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 34c0e63b2d14ca1eeb30cf6cd087d5cb5327e19f)
Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
---
 scripts/yocto-check-layer | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer
index 4634672162..4017b3a251 100755
--- a/scripts/yocto-check-layer
+++ b/scripts/yocto-check-layer
@@ -221,7 +221,9 @@  def main():
         logger.info('Getting initial signatures ...')
         td['builddir'] = builddir
         try:
-            td['sigs'], td['tunetasks'] = get_signatures(td['builddir'])
+            # Only test_signatures, a common test, compares against them
+            if not args.run_tests or 'common' in [t.split('.')[0] for t in args.run_tests]:
+                td['sigs'], td['tunetasks'] = get_signatures(td['builddir'])
         except RuntimeError as e:
             logger.info(str(e))
             results[layer['name']] = None