check_result_nspawn() {
local workspace="${1:?}"
- local ret
+ local ret=0
# Run a test-specific checks if defined by check_result_nspawn_hook()
if declare -F check_result_nspawn_hook >/dev/null; then
fi
fi
- check_result_common "${workspace}" && ret=0 || ret=$?
+ check_result_common "${workspace}" || ret=$?
_umount_dir "${initdir:?}"
# can be overridden in specific test
check_result_qemu() {
- local ret
+ local ret=0
mount_initdir
# Run a test-specific checks if defined by check_result_qemu_hook()
fi
fi
- check_result_common "${initdir:?}" && ret=0 || ret=$?
+ check_result_common "${initdir:?}" || ret=$?
_umount_dir "${initdir:?}"