Skip to content

Commit d1beb70

Browse files
committed
twister: allowlist build_info.yml and zephyr.dts
These files can be useful to troubleshoot a test that's failing, and they're really small, too. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent c2bcb5b commit d1beb70

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/pylib/twister/twisterlib/runner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,8 @@ def cleanup_artifacts(self, additional_keep: list[str] = None):
13131313
'recording.csv',
13141314
'rom.json',
13151315
'ram.json',
1316+
'build_info.yml',
1317+
'zephyr/zephyr.dts',
13161318
# below ones are needed to make --test-only work as well
13171319
'Makefile',
13181320
'CMakeCache.txt',

scripts/tests/twister_blackbox/test_outfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def test_runtime_artifact_cleanup(self, out_path):
102102
zephyr_listdir = os.listdir(os.path.join(sample_path, 'zephyr'))
103103

104104
expected_contents = ['CMakeFiles', 'handler.log', 'build.ninja', 'CMakeCache.txt',
105-
'zephyr', 'build.log']
106-
expected_zephyr_contents = ['.config']
105+
'zephyr', 'build.log', 'build_info.yml']
106+
expected_zephyr_contents = ['.config', 'zephyr.dts']
107107

108108
assert all([content in expected_zephyr_contents for content in zephyr_listdir]), \
109109
'Cleaned zephyr directory has unexpected files.'

0 commit comments

Comments
 (0)