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