Tools: also test out directory working in one of the build tests

This commit is contained in:
bugobliterator 2021-12-16 16:24:16 +11:00 committed by Andrew Tridgell
parent 62945e1d85
commit a9c78fe7e3
1 changed files with 9 additions and 1 deletions

View File

@ -170,9 +170,17 @@ for t in $CI_BUILD_TARGET; do
if [ "$t" == "revo-bootloader" ]; then
echo "Building revo bootloader"
$waf configure --board revo-mini --bootloader
if [ -f ~/alternate_build/revo-mini/bin/AP_Bootloader.bin ]; then
rm -r ~/alternate_build
fi
$waf configure --board revo-mini --bootloader --out ~/alternate_build
$waf clean
$waf bootloader
# check if bootloader got built under alternate_build
if [ ! -f ~/alternate_build/revo-mini/bin/AP_Bootloader.bin ]; then
echo "alternate build output directory Test failed"
exit 1
fi
continue
fi