From 6ebd748c7562f3d13b598ae417301391343a43c6 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Fri, 26 Nov 2021 12:23:14 +0700 Subject: [PATCH] ci: Fix build system tests to clean the dir --- tools/ci/test_build_system_cmake.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/test_build_system_cmake.sh b/tools/ci/test_build_system_cmake.sh index 8f6114bbf6..593ca1b8de 100755 --- a/tools/ci/test_build_system_cmake.sh +++ b/tools/ci/test_build_system_cmake.sh @@ -702,6 +702,7 @@ endmenu\n" >> ${IDF_PATH}/Kconfig rm -f log.txt print_status "Build fails if partitions don't fit in flash" + clean_build_dir sed -i.bak "s/CONFIG_ESPTOOLPY_FLASHSIZE.\+//" sdkconfig # remove all flashsize config echo "CONFIG_ESPTOOLPY_FLASHSIZE_1MB=y" >> sdkconfig # introduce undersize flash ( idf.py build 2>&1 | grep "does not fit in configured flash size 1MB" ) || failure "Build didn't fail with expected flash size failure message" @@ -824,7 +825,6 @@ endmenu\n" >> ${IDF_PATH}/Kconfig rm -rf "$IDF_PATH/example_proj" - print_status "All tests completed" if [ -n "${FAILURES}" ]; then echo "Some failures were detected:"