From 8e03a750865b2920d8d1d8cf89210dc2183ea802 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Tue, 8 Mar 2022 18:12:40 +0800 Subject: [PATCH] Skip sys.geom.class.multipath.failloop.failloop if dtrace fails to run This test case depends on dtrace and sometimes gets affected if dtrace has issues. Make it report skipped instead of failure when dtrace fails to run. Sponsored by: The FreeBSD Foundation --- tests/sys/geom/class/multipath/failloop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/geom/class/multipath/failloop.sh b/tests/sys/geom/class/multipath/failloop.sh index 0f0202bb8b01..2ec0d0b82282 100755 --- a/tests/sys/geom/class/multipath/failloop.sh +++ b/tests/sys/geom/class/multipath/failloop.sh @@ -57,7 +57,7 @@ failloop_body() -c "dd if=/dev/zero of=/dev/multipath/"$name" bs=4096 count=1" \ 2>&1 | awk '/exited with status/ {print $NF}'` if [ ! -f restore_count ]; then - atf_fail "dtrace didn't execute successfully" + atf_skip "dtrace didn't execute successfully" fi # The dd command should've failed ... atf_check_equal 1 $dd_status