From d698209647341241a4ca3d868cb657b06fd03db1 Mon Sep 17 00:00:00 2001 From: Lukasz Mrugala Date: Fri, 4 Apr 2025 07:15:12 +0000 Subject: [PATCH] twister: Remove C object buildlist from -i test The disparity in C objects built causes the test to fail. This removes those lines from the log to inline log comparison. Let's disable it in the relevant test. Signed-off-by: Lukasz Mrugala --- scripts/tests/twister_blackbox/test_output.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/tests/twister_blackbox/test_output.py b/scripts/tests/twister_blackbox/test_output.py index f20d896472b..5babfa96620 100644 --- a/scripts/tests/twister_blackbox/test_output.py +++ b/scripts/tests/twister_blackbox/test_output.py @@ -82,7 +82,7 @@ class TestOutput: assert all([(tc_name.count('.') == 1) for _, _, tc_name in filtered_j]) - def xtest_inline_logs(self, out_path): + def test_inline_logs(self, out_path): test_platforms = ['qemu_x86', 'intel_adl_crb'] path = os.path.join(TEST_DATA, 'tests', 'always_build_error', 'dummy') args = ['--outdir', out_path, '-T', path] + \ @@ -132,7 +132,11 @@ class TestOutput: r'-- Configuring done \([0-9.]+s\)', r'-- Generating done \([0-9.]+s\)', # Cache location may vary between CI runs - r'^.*-- Cache files will be written to:.*$' + r'^.*-- Cache files will be written to:.*$', + # List of built C object may differ between runs. + # See: Issue #87769. + # Probable culprits: the cache mechanism, build error + r'^Building C object .*$' ] for pattern in removal_patterns: c_pattern = re.compile(pattern, flags=re.MULTILINE)