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',
|
||||
'rom.json',
|
||||
'ram.json',
|
||||
'build_info.yml',
|
||||
'zephyr/zephyr.dts',
|
||||
# below ones are needed to make --test-only work as well
|
||||
'Makefile',
|
||||
'CMakeCache.txt',
|
||||
|
|
|
@ -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.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue