The branch stable/12 has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=3c25f7e860d8dc18aaa370352cb968df65c176f5
commit 3c25f7e860d8dc18aaa370352cb968df65c176f5 Author: Li-Wen Hsu <[email protected]> AuthorDate: 2021-09-28 18:02:27 +0000 Commit: Li-Wen Hsu <[email protected]> CommitDate: 2021-09-30 03:58:46 +0000 gmultipath failloop test: Add a checker for dtrace executes successfully or not To provide a more informative error message. Sponsored by: The FreeBSD Foundation (cherry picked from commit 819961c5808b053c626648e202dec42a19ebe7a6) (cherry picked from commit 38dac71d0a95ab2cf2cdfa1232cc556008b7ac94) (cherry picked from commit b9b5a4dd590e1b30d92dc73b3d1f22d3303e7e41) --- tests/sys/geom/class/multipath/failloop.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/sys/geom/class/multipath/failloop.sh b/tests/sys/geom/class/multipath/failloop.sh index f9a1417ae37f..0f0202bb8b01 100755 --- a/tests/sys/geom/class/multipath/failloop.sh +++ b/tests/sys/geom/class/multipath/failloop.sh @@ -56,6 +56,9 @@ failloop_body() -i 'geom:multipath:config:restore {@restore = count()}' \ -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" + fi # The dd command should've failed ... atf_check_equal 1 $dd_status # and triggered 1 or 2 path restores _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
