summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2025-01-12 01:23:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-14 11:57:52 +0000
commit94d88ed23abd95530c2b891c314dad93fa23fcda (patch)
treeca02d7ebb9e39eb084946d51831f8ab64f664148 /meta
parent30af2f18b934913148554c82dafb2a2f4b386e38 (diff)
downloadpoky-94d88ed23abd95530c2b891c314dad93fa23fcda.tar.gz
selftest/reproducible: Print full log path on failure
Printed message looks like this: 2025-01-12 00:40:08,326 - oe-selftest - ERROR - reproducibleA build failed. Trying to compute built packages differences but the test will fail. 2025-01-12 00:40:08,326 - oe-selftest - INFO - Failure log for reproducibleA will be copied to <snip>/oe-reproducible-20250112-mza9w940/bitbake-reproducibleA.log Fixes [YOCTO #15655] (first half). (From OE-Core rev: 1c2287849a2742445d80c81d6a1c6c3e3668765e) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/cases/reproducible.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index ee6f8cbdc2..9597d76697 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -318,7 +318,9 @@ class ReproducibleTests(OESelftestTestCase):
318 self.logger.error('%s build failed. Trying to compute built packages differences but the test will fail.' % name) 318 self.logger.error('%s build failed. Trying to compute built packages differences but the test will fail.' % name)
319 fails.append("Bitbake %s failure" % name) 319 fails.append("Bitbake %s failure" % name)
320 if self.save_results: 320 if self.save_results:
321 self.copy_file(variables["BB_CONSOLELOG"], os.path.join(save_dir, "bitbake-%s.log" % name)) 321 failure_log_path = os.path.join(save_dir, "bitbake-%s.log" % name)
322 self.logger.info('Failure log for %s will be copied to %s'% (name, failure_log_path))
323 self.copy_file(variables["BB_CONSOLELOG"], failure_log_path)
322 vars_list[i] = variables 324 vars_list[i] = variables
323 325
324 vars_A, vars_B = vars_list 326 vars_A, vars_B = vars_list