From nobody Wed Sep 04 14:28:59 2024 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 4WzPxl6KGTz5V19L; Wed, 04 Sep 2024 14:28:59 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WzPxl5nqBz495H; Wed, 4 Sep 2024 14:28:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725460139; 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=hXxkw4gRhla/i8tkTgFyIhjzWxwgfk8z6NZ+lpRjwc0=; b=rH35IqcM9a5Muqdq0nViOTrxDWGSAZzSa+EUIjU7nKmXjBUcbEFVk7kM5pOde2LHxfevXC Fl+Ab0Pt1cNVZl7FjYUrbFUh7esDnTrBSmmCCewyOwwWrOMrr8nMldLb7AazjPBu8ic8nX b8767e4WocY9vTaOvnJp0lZ87RBWMogoDg/LPqXQBmv40re2hFH6bcJU+4aNqrzSETyp0y N+nKmXJA0ifRxHsAEIhEYx1Eie1n6b5Nty5k3P10pYfrLGHNmi/SXFvn0ewG6zBNxRP7t+ IJMxLe60ut/m4AvDDqlkT0SmoxHfk6voQjumqenlyyZ2BJyfzrSarO2FvA3ixA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725460139; a=rsa-sha256; cv=none; b=BBFR4XkRKUvUb1KniuaHEbEKmSi0CQKOlMg4imue+DxKS8bhY1iqPMrJ+3v++BtP2LjSip Oc112M3L9An1ztohGIrNi64ZtfZ167FxBssOhmPsezva1Hc10q9SU9dYHa1PwXkIomH/sM Rb3ld/9/8J1rPKImft6JGeTrpJlO52TFgODKu0DOZNwhXVZDNjldGa2ew4ceIipS+GUmpJ OiYGAWE8aODrLtj72NvTjZkOqOhwSfbIQmPacQy/DZqY3Ug1IrHM/c7QcGzleCDIjVLVhe J27V6plZL7XlDXt1PHSJk7kGTD7qY8O4sVKnWc92lN3mhHmHUOUhbfegOVb96Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725460139; 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=hXxkw4gRhla/i8tkTgFyIhjzWxwgfk8z6NZ+lpRjwc0=; b=SMu3Mfc6NEPIM77IN6J6FRdN9PQ14fsPk8LvDehnxxPJrLBHeIwJ9pM076pV2HkS/aZOZ5 F8L5YK91V35oL4DxXfppEXCG/E9zvak5NS7smmvSl5MzCXUT93lOuhJnONs8OmNyNLnLxk c6yYCZb0qtt69VxGJwYxS/vf8mwilNUwGPSt0ISmP7LKXxYMOKuCNErN9WVruD0qzeKtA3 rHV18iwEBUXLCY4lSeK2689/pJBWz+VDoy9Tr5GufeGapDVxXPyra1O/7Sl1MJ5TMO/f/8 Nf2sWHaMkgPv8iULnjHZqCa6t87nchY7nnSgLevNAt/fpiP4vwl+Vo3KU8Y85A== 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 4WzPxl5KcfzShF; Wed, 4 Sep 2024 14:28:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 484ESxdY065958; Wed, 4 Sep 2024 14:28:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 484ESx03065955; Wed, 4 Sep 2024 14:28:59 GMT (envelope-from git) Date: Wed, 4 Sep 2024 14:28:59 GMT Message-Id: <202409041428.484ESx03065955@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: b5d3f8252fe8 - main - ggate tests: Use unique ports among tests 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5d3f8252fe8b74249ed49e87981d190c3ec3d05 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b5d3f8252fe8b74249ed49e87981d190c3ec3d05 commit b5d3f8252fe8b74249ed49e87981d190c3ec3d05 Author: Mark Johnston AuthorDate: 2024-06-15 00:10:42 +0000 Commit: Mark Johnston CommitDate: 2024-09-04 14:28:28 +0000 ggate tests: Use unique ports among tests This helps avoid failures when running tests in parallel. MFC after: 1 week --- tests/sys/geom/class/gate/ggate_test.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/sys/geom/class/gate/ggate_test.sh b/tests/sys/geom/class/gate/ggate_test.sh index 3ca5c3a2531a..4cbc5d80ae89 100644 --- a/tests/sys/geom/class/gate/ggate_test.sh +++ b/tests/sys/geom/class/gate/ggate_test.sh @@ -1,7 +1,5 @@ - PIDFILE=ggated.pid PLAINFILES=plainfiles -PORT=33080 CONF=gg.exports atf_test_case ggatec_trim cleanup @@ -17,13 +15,14 @@ ggatec_trim_body() { load_ggate + port=33080 us=$(alloc_ggate_dev) work=$(alloc_md) atf_check -e ignore -o ignore dd if=/dev/random of=/dev/$work bs=1m count=1 conv=notrunc echo $CONF >> $PLAINFILES echo "localhost RW /dev/$work" > $CONF - atf_check ggated -p $PORT -F $PIDFILE $CONF - atf_check ggatec create -p $PORT -u $us localhost /dev/$work + atf_check ggated -p $port -F $PIDFILE $CONF + atf_check ggatec create -p $port -u $us localhost /dev/$work ggate_dev=/dev/ggate${us} wait_for_ggate_device ${ggate_dev} @@ -55,6 +54,7 @@ ggated_body() load_ggate + port=33081 us=$(alloc_ggate_dev) work=$(alloc_md) src=$(alloc_md) @@ -67,8 +67,8 @@ ggated_body() echo $CONF >> $PLAINFILES echo "127.0.0.1 RW /dev/$work" > $CONF - atf_check ggated -p $PORT -F $PIDFILE $CONF - atf_check ggatec create -p $PORT -u $us 127.0.0.1 /dev/$work + atf_check ggated -p $port -F $PIDFILE $CONF + atf_check ggatec create -p $port -u $us 127.0.0.1 /dev/$work ggate_dev=/dev/ggate${us}