mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
ci: Fix build system tests to clean the dir
This commit is contained in:
committed by
Sergei Silnov
parent
6ed81a632c
commit
6ebd748c75
@ -702,6 +702,7 @@ endmenu\n" >> ${IDF_PATH}/Kconfig
|
|||||||
rm -f log.txt
|
rm -f log.txt
|
||||||
|
|
||||||
print_status "Build fails if partitions don't fit in flash"
|
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
|
sed -i.bak "s/CONFIG_ESPTOOLPY_FLASHSIZE.\+//" sdkconfig # remove all flashsize config
|
||||||
echo "CONFIG_ESPTOOLPY_FLASHSIZE_1MB=y" >> sdkconfig # introduce undersize flash
|
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"
|
( 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"
|
rm -rf "$IDF_PATH/example_proj"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print_status "All tests completed"
|
print_status "All tests completed"
|
||||||
if [ -n "${FAILURES}" ]; then
|
if [ -n "${FAILURES}" ]; then
|
||||||
echo "Some failures were detected:"
|
echo "Some failures were detected:"
|
||||||
|
Reference in New Issue
Block a user