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é <benjamin@zephyrproject.org>
This commit is contained in:
parent
c44334374e
commit
9ca11f3e9c
2 changed files with 4 additions and 2 deletions
|
@ -1313,6 +1313,8 @@ class ProjectBuilder(FilterBuilder):
|
||||||
'recording.csv',
|
'recording.csv',
|
||||||
'rom.json',
|
'rom.json',
|
||||||
'ram.json',
|
'ram.json',
|
||||||
|
'build_info.yml',
|
||||||
|
'zephyr/zephyr.dts',
|
||||||
# below ones are needed to make --test-only work as well
|
# below ones are needed to make --test-only work as well
|
||||||
'Makefile',
|
'Makefile',
|
||||||
'CMakeCache.txt',
|
'CMakeCache.txt',
|
||||||
|
|
|
@ -102,8 +102,8 @@ class TestOutfile:
|
||||||
zephyr_listdir = os.listdir(os.path.join(sample_path, 'zephyr'))
|
zephyr_listdir = os.listdir(os.path.join(sample_path, 'zephyr'))
|
||||||
|
|
||||||
expected_contents = ['CMakeFiles', 'handler.log', 'build.ninja', 'CMakeCache.txt',
|
expected_contents = ['CMakeFiles', 'handler.log', 'build.ninja', 'CMakeCache.txt',
|
||||||
'zephyr', 'build.log']
|
'zephyr', 'build.log', 'build_info.yml']
|
||||||
expected_zephyr_contents = ['.config']
|
expected_zephyr_contents = ['.config', 'zephyr.dts']
|
||||||
|
|
||||||
assert all([content in expected_zephyr_contents for content in zephyr_listdir]), \
|
assert all([content in expected_zephyr_contents for content in zephyr_listdir]), \
|
||||||
'Cleaned zephyr directory has unexpected files.'
|
'Cleaned zephyr directory has unexpected files.'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue