From 9ca11f3e9c2562b8afcad95c42711ac006598fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 6 Feb 2025 19:09:24 +0100 Subject: [PATCH] twister: allowlist build_info.yml and zephyr.dts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These files can be useful to troubleshoot a test that's failing, and they're really small, too. Signed-off-by: Benjamin Cabé --- scripts/pylib/twister/twisterlib/runner.py | 2 ++ scripts/tests/twister_blackbox/test_outfile.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/pylib/twister/twisterlib/runner.py b/scripts/pylib/twister/twisterlib/runner.py index 0593cbc7fc3..2e402b66356 100644 --- a/scripts/pylib/twister/twisterlib/runner.py +++ b/scripts/pylib/twister/twisterlib/runner.py @@ -1313,6 +1313,8 @@ class ProjectBuilder(FilterBuilder): 'recording.csv', 'rom.json', 'ram.json', + 'build_info.yml', + 'zephyr/zephyr.dts', # below ones are needed to make --test-only work as well 'Makefile', 'CMakeCache.txt', diff --git a/scripts/tests/twister_blackbox/test_outfile.py b/scripts/tests/twister_blackbox/test_outfile.py index 57a874041cb..590e0c8f58a 100644 --- a/scripts/tests/twister_blackbox/test_outfile.py +++ b/scripts/tests/twister_blackbox/test_outfile.py @@ -102,8 +102,8 @@ class TestOutfile: zephyr_listdir = os.listdir(os.path.join(sample_path, 'zephyr')) expected_contents = ['CMakeFiles', 'handler.log', 'build.ninja', 'CMakeCache.txt', - 'zephyr', 'build.log'] - expected_zephyr_contents = ['.config'] + 'zephyr', 'build.log', 'build_info.yml'] + expected_zephyr_contents = ['.config', 'zephyr.dts'] assert all([content in expected_zephyr_contents for content in zephyr_listdir]), \ 'Cleaned zephyr directory has unexpected files.'