Skip to content

Commit dfffc27

Browse files
PerMaccarlescufi
authored andcommitted
twister: Delete less files during artifact cleanup
Option --runtime-artifact-cleanup/-M allows to clean build artifacts during runtime to save space usage. However, if one wanted to combine it with --build-only and then --test-only, they would get an error. This commit expands the list of files stored with -M with files required to made --test-only also to work afterwards. Such change can be useful for setups where building is done on one node and then minimal amount of artifacts are transfered to another one. Signed-off-by: Maciej Perkowski <[email protected]>
1 parent 41bbb51 commit dfffc27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/pylib/twister/twisterlib.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,6 +2795,11 @@ def cleanup_artifacts(self, additional_keep=[]):
27952795
'build.log',
27962796
'device.log',
27972797
'recording.csv',
2798+
# below ones are needed to make --test-only work as well
2799+
'Makefile',
2800+
'CMakeCache.txt',
2801+
'build.ninja',
2802+
'CMakeFiles/rules.ninja'
27982803
]
27992804

28002805
allow += additional_keep

0 commit comments

Comments
 (0)