From: Yoann Congal <yoann.con...@smile.fr>

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).

Signed-off-by: Yoann Congal <yoann.con...@smile.fr>
---
 meta/lib/oeqa/selftest/cases/reproducible.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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):
                 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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#209674): 
https://lists.openembedded.org/g/openembedded-core/message/209674
Mute This Topic: https://lists.openembedded.org/mt/110562800/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to