test: make check_result_*() set -e friendly

This commit is contained in:
Frantisek Sumsal 2023-06-04 22:16:58 +02:00
parent e6faf0ee22
commit 71d7f02cc7

View File

@ -1711,8 +1711,7 @@ check_result_nspawn() {
fi
fi
check_result_common "${workspace}"
ret=$?
check_result_common "${workspace}" && ret=0 || ret=$?
_umount_dir "${initdir:?}"
@ -1732,8 +1731,7 @@ check_result_qemu() {
fi
fi
check_result_common "${initdir:?}"
ret=$?
check_result_common "${initdir:?}" && ret=0 || ret=$?
_umount_dir "${initdir:?}"