ci-automation: Break test cycle properly

Create a tapfile and break out of the loop.
This commit is contained in:
Krzesimir Nowak 2022-08-30 11:17:00 +02:00
parent 27ba532c14
commit 6c77ebde54

View File

@ -13,7 +13,12 @@ set -euo pipefail
source ci-automation/vendor_test.sh
if [ "$*" != "" ] && [ "$*" != "*" ] && [ "$*" != "cl.update.payload" ]; then
echo "Only cl.update.payload is supported, got '$*'"
echo "1..1" > "${CIA_TAPFILE}"
echo "not ok - all qemu update tests" >> "${CIA_TAPFILE}"
echo " ---" >> "${CIA_TAPFILE}"
echo " ERROR: Only cl.update.payload is supported, got '$*'." | tee -a "${CIA_TAPFILE}"
echo " ..." >> "${CIA_TAPFILE}"
break_retest_cycle
exit 1
fi