Skip to content

Commit 480e4fb

Browse files
committed
tests_build.sh: Add a clean option. Useful locally for a quick clean
up. Signed-off-by: Abdelatif Guettouche <[email protected]>
1 parent 13907e1 commit 480e4fb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: .github/scripts/tests_build.sh

+13
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@ USAGE:
66
Example: ${0} -c -t esp32 -i 0 -m 15
77
${0} -s sketch_name <build_opts>
88
Example: ${0} -s hello_world -t esp32
9+
${0} -clean
10+
Remove build and test generated files
911
"
1012

13+
function clean(){
14+
rm -rf tests/*/build*/
15+
rm -rf tests/.pytest_cache
16+
rm -rf tests/*/__pycache__/
17+
rm -rf tests/*/*.xml
18+
}
19+
1120
SCRIPTS_DIR="./.github/scripts"
1221
BUILD_CMD=""
1322

@@ -26,6 +35,10 @@ while [ ! -z "$1" ]; do
2635
echo "$USAGE"
2736
exit 0
2837
;;
38+
-clean )
39+
clean
40+
exit 0
41+
;;
2942
* )
3043
break
3144
;;

0 commit comments

Comments
 (0)