check_result_common "${workspace}"
ret=$?
+ # Run additional test-specific checks if defined by check_result_nspawn_hook()
+ if declare -F check_result_nspawn_hook >/dev/null; then
+ if ! check_result_nspawn_hook; then
+ derror "check_result_nspawn_hook() returned with EC > 0"
+ ret=4
+ fi
+ fi
+
_umount_dir "${initdir:?}"
return $ret
_umount_dir "${initdir:?}"
+ # Run additional test-specific checks if defined by check_result_qemu_hook()
+ if declare -F check_result_qemu_hook >/dev/null; then
+ if ! check_result_qemu_hook; then
+ derror "check_result_qemu_hook() returned with EC > 0"
+ ret=4
+ fi
+ fi
+
return $ret
}