From nobody Tue Mar 07 10:38:07 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PWBjr0GNHz3xD2S; Tue, 7 Mar 2023 10:38:08 +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 4PWBjq6tN0z3PNN; Tue, 7 Mar 2023 10:38:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678185488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LVuk0A53WEEOjqCQycAGMJofDRdOy2Rp88QJc3jtPiw=; b=k6o5gUtHmqDDjiraecuQCEwEinedLeizTVYj+AvOC1EcjAEd3IT7E9IGBzIwaJlPYN2m4A WHOf9L0SvjTxzRWmCqP5Z8Y65ieW5Nk/ZO4A0cCccIkfRgdHkBBLBHRnxfUruk7JxDosM7 cnT/tei2T3D+ySMIgXTWMlfaVeyZa/OgxU1FXGTohxX81SJIDMOFV72ZOjb4QIK3D2vxmi FBgoFz0fhEtm1Vo+D46dKp828DTxLEfCw2JNANppLS9VOESa6jhPxkQl+tuQDPK/Vq8EjQ SwaulJjX48ZaBc3uW2m8FfAOpoiYDB/5WWdkJW3IZSWftRm8sdPR3r1y9fUrZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678185488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LVuk0A53WEEOjqCQycAGMJofDRdOy2Rp88QJc3jtPiw=; b=eDa+CFopAiqdM9De0l/nLAUBKUEjEIHaACxo0rdO4MRLWRDeIB20Sq7nwtujx78voIkQTF lVuDHA/ViOtYe86Aa/G+cagYuAfKGc/v65ZB+AKtty5TPB+1OfHDdyy2BcrkfF6fwbJr9H Pph3dZu0njXv/+N+wzLdk8qW8x6rrK2u49j3DfywKiH1L1sNvCS2ZXoHr4/V8PxLqAvZ5+ sa9HdVkkQFmfXh9YsF1U3uyC9t0cjX0nYBCAnjHDGveJqFfMMxV+b732nAoWR9P26ArSi3 QHsRAQCQEet1I5aLOHy6v92qphc/nDqm4xDiskW9bu+HAyLujtlizpNTsNR2nA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678185488; a=rsa-sha256; cv=none; b=cZwdVufaIpiQPKg7tJLv9vqfD7WkV2zF/1fuX+7hwEuumKL1QiNA3ejTkaBQHKv5KJUM7p FdVyjAXyAUjM/ItqyBfC8sfXJiS7VdSCvWSINlKMiTqWRWjUARPkVtwHPrAviyCPW5g5OE B6pqWi3dExrzm0tVHh56bArbkicMdvk2SCJcyANT3GNIqxVBfv8UueCp6/1cxTc0DtFFmZ vWRmEvSdMycsPK5TvtH+WtHUhQZrYGxlJNf8E1SoMvYP4ZHgcA5fC7pRTAI2YgNtZTzCz6 7vb4YhqyE85wLWSmbfVwDyHgDq4owzMu/glcf6USiI4iFjsUjRdYQfMn1HCHRA== 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 4PWBjq5xvTzgjL; Tue, 7 Mar 2023 10:38:07 +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 327Ac76o099152; Tue, 7 Mar 2023 10:38:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 327Ac7bM099151; Tue, 7 Mar 2023 10:38:07 GMT (envelope-from git) Date: Tue, 7 Mar 2023 10:38:07 GMT Message-Id: <202303071038.327Ac7bM099151@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: f427703f16db - main - carp tests: ensure exactly one jail is master List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f427703f16db6c33205307d8cc2d9d526bc1c6fd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=f427703f16db6c33205307d8cc2d9d526bc1c6fd commit f427703f16db6c33205307d8cc2d9d526bc1c6fd Author: Kristof Provost AuthorDate: 2023-03-06 12:33:50 +0000 Commit: Kristof Provost CommitDate: 2023-03-07 09:51:44 +0000 carp tests: ensure exactly one jail is master Verify that we only have one master, not two. Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netinet/carp.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/sys/netinet/carp.sh b/tests/sys/netinet/carp.sh index 95cb7847ae28..d31a17ed6beb 100755 --- a/tests/sys/netinet/carp.sh +++ b/tests/sys/netinet/carp.sh @@ -46,6 +46,11 @@ wait_for_carp() [ -z "$(is_master ${jail2} ${itf2})" ]; do sleep 1 done + + if [ -n "$(is_master ${jail1} ${itf1})" ] && + [ -n "$(is_master ${jail2} ${itf2})" ]; then + atf_fail "Both jails are master" + fi } carp_init()