Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 2021 03:57:31 GMT
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 60921d4b2d68 - stable/13 - gmultipath failloop test: Add a checker for dtrace executes successfully or not
Message-ID:  <202109300357.18U3vV01039864@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=60921d4b2d6826229159117288256a906df0bffa

commit 60921d4b2d6826229159117288256a906df0bffa
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2021-09-28 18:02:27 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-09-30 03:57:06 +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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109300357.18U3vV01039864>