From nobody Fri Sep 20 11:39:55 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 4X99RH5YDrz5Wdsb; Fri, 20 Sep 2024 11:39:55 +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 4X99RH3yxTz4lK7; Fri, 20 Sep 2024 11:39:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726832395; 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=mkNnv4SWZ38fkY1P8UDnxA4IWYfNYgmHvBH6k/GadbM=; b=ByJlDNWK/Wbaj5YOaSzUw6ujae2/eDGFIf1W0NIuWUpsTKDppzKRpVzknTdCooe4Bmiv+7 fEKhfiQUxYwEcYDerWEEG6YK0sNpITT9TM5JarbjetDiRNwDJpi0PILsrJl+/zu5eeh/a5 fUmV2rPjbZjLv8o9+2AAZRRl3C625tTOM/H+tHPUkGv3c5GM+Es7Utspj2mo3nyLkI253R 0zGEFTAJWFmMN3h4pW/d8+Mtp9v3/TbZTZQNgWFRFpeuncaFHDhWIkwRTRa3Ap6AgNMofl igau2Xm5wlRADK05RISt+zu64Orywzsr/Vd/V9aZ0G0DibDNC2qhzy0DqWZaYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726832395; a=rsa-sha256; cv=none; b=FmPpQWC8tL7ZtFAyAoqG63TuKqGWJyGvNdrYb5xM7h5MA2vTjd/RWYuOjtpP3x77aW2F2q HTW/XFNEK1y/eP6OPAv+XEuA0/FA/TSTiQJMxpQT3ImbeeR50PxJxcxym+jzg5L8esQJa8 ucYJ3QP6/0EnOEwfB7GlSsqhxeCCezyqQIeQ23cGPjtUd4Gj0II2REAc2wsHAASbRf56HC sUYD9ZM2E+eKtj5ms9PweI7n8cQJrWam+4vykeLvFsqz8+anZ39ev2VpSDTOqho017ILdg QIw+LJGwNZcxskmsSyYd/BM6F7RUxivssG9POWfsFSQNK5sN7OxrfbDvawwCLw== 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=1726832395; 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=mkNnv4SWZ38fkY1P8UDnxA4IWYfNYgmHvBH6k/GadbM=; b=pbTzhMxkq1eSHQ3cxWrSubg5liU0InUYkFOxAHHWVwt08JKLH1wRW77vQaVpGGGiyJhcvO 0qJfTjGvrFV0gNJigEPMf0WnYu2UUp7m8pjVTecLN+U/6wFOkvbFD84Ev4SksKfNwY2ack s7fr6RJnesH/dz909BXC8AMGQAqohesmR38mQSNHgotkk+WhuAkyQ0YfnHToqjhcsEKvSi iCB2eLnP52KbL+G2DVUVtqAj21WdvzmpN+Z7WTbFVNvpyx+B7V5pH1l+uM4nU339zEswCc 53Slw9OaXkJyYah5jqgaa5hY8d0EBxjmsJD/BZM3PLNzAJ9tB8iPNdaxqL0gsA== 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 4X99RH3ZP0znXx; Fri, 20 Sep 2024 11:39:55 +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 48KBdtJH004299; Fri, 20 Sep 2024 11:39:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48KBdthI004296; Fri, 20 Sep 2024 11:39:55 GMT (envelope-from git) Date: Fri, 20 Sep 2024 11:39:55 GMT Message-Id: <202409201139.48KBdthI004296@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 246f922d635e - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 246f922d635e114c336c1e15ce041a1d8496ea60 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=246f922d635e114c336c1e15ce041a1d8496ea60 commit 246f922d635e114c336c1e15ce041a1d8496ea60 Author: Mark Johnston AuthorDate: 2024-06-15 00:10:42 +0000 Commit: Mark Johnston CommitDate: 2024-09-20 11:39:16 +0000 ggate tests: Use unique ports among tests This helps avoid failures when running tests in parallel. MFC after: 1 week (cherry picked from commit b5d3f8252fe8b74249ed49e87981d190c3ec3d05) --- 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}