mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
30af2f18b9
commit
94d88ed23a
@@ -318,7 +318,9 @@ class ReproducibleTests(OESelftestTestCase):
|
||||
self.logger.error('%s build failed. Trying to compute built packages differences but the test will fail.' % name)
|
||||
fails.append("Bitbake %s failure" % name)
|
||||
if self.save_results:
|
||||
self.copy_file(variables["BB_CONSOLELOG"], os.path.join(save_dir, "bitbake-%s.log" % name))
|
||||
failure_log_path = os.path.join(save_dir, "bitbake-%s.log" % name)
|
||||
self.logger.info('Failure log for %s will be copied to %s'% (name, failure_log_path))
|
||||
self.copy_file(variables["BB_CONSOLELOG"], failure_log_path)
|
||||
vars_list[i] = variables
|
||||
|
||||
vars_A, vars_B = vars_list
|
||||
|
||||
Reference in New Issue
Block a user