From owner-dev-commits-src-all@freebsd.org Thu Sep 30 03:57:31 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7C0616A9E96; Thu, 30 Sep 2021 03:57:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HKfZz2vJsz4Sv0; Thu, 30 Sep 2021 03:57:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 43B6924668; Thu, 30 Sep 2021 03:57:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18U3vV63039865; Thu, 30 Sep 2021 03:57:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18U3vV01039864; Thu, 30 Sep 2021 03:57:31 GMT (envelope-from git) Date: Thu, 30 Sep 2021 03:57:31 GMT Message-Id: <202109300357.18U3vV01039864@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Li-Wen Hsu Subject: git: 60921d4b2d68 - stable/13 - gmultipath failloop test: Add a checker for dtrace executes successfully or not MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 60921d4b2d6826229159117288256a906df0bffa Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2021 03:57:31 -0000 The branch stable/13 has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=60921d4b2d6826229159117288256a906df0bffa commit 60921d4b2d6826229159117288256a906df0bffa Author: Li-Wen Hsu AuthorDate: 2021-09-28 18:02:27 +0000 Commit: Li-Wen Hsu 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