Skip to content

Commit 78805a4

Browse files
committed
Added cleanup to twister pipeline testing to reduce number of artifact files
1 parent 34e8c86 commit 78805a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

samples.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ rm -rf "$OUTPUT_DIR"
1515
# Run twister with the specified test cases and output directory
1616
"$TWISTER_EXE" -O "$OUTPUT_DIR" -T "$TEST_CASES_DIR"
1717

18-
# twister output directory cleanup
18+
# twister output directory cleanup files we do not archive
19+
find $OUTPUT_DIR -name 'CMakeFiles' -exec rm -rf {} \;
1920
find $OUTPUT_DIR -name 'modules' -exec rm -rf {} \;
2021
find $OUTPUT_DIR -name 'app' -exec rm -rf \
2122
'{}/../zephyr/arch

unittest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ rm -rf "$OUTPUT_DIR"
1717
# Run twister with the specified test cases and output directory
1818
"$TWISTER_EXE" -O "$OUTPUT_DIR" -p "$TWISTER_PLATFORM" -T "$TEST_CASES_DIR"
1919

20-
# twister output directory cleanup
20+
# twister output directory cleanup files we do not archive
21+
find $OUTPUT_DIR -name 'CMakeFiles' -exec rm -rf {} \;
2122
find $OUTPUT_DIR -name 'modules' -exec rm -rf {} \;
2223
find $OUTPUT_DIR -name 'app' -exec rm -rf \
2324
'{}/../zephyr/arch

0 commit comments

Comments
 (0)