From nobody Mon Nov 06 16:45:57 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 4SPHKd4qv9z50F1q; Mon, 6 Nov 2023 16:45:57 +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 4SPHKd2lZcz4H8V; Mon, 6 Nov 2023 16:45:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699289157; 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=Tr/f74ObLhtWOshVZT+Bk3wIeSsHtZBvGzNIgAN4acI=; b=k7KIsD0Q0ScRCPtDr/iAvlJ0gDQmXcPLo2I2TYWQDbY2KJp+k4nW1udxxlWvtlP/UgMx5W bcUqDf8/qhSx/ygfqVLglnxlNp15kRJRIyjFnT3IOeKiPuuFAepqwPJRYSOdxQ559egabm rhfRhk7Xe82ksHBpqTaz8oXjr4c82djPJuifSgwsZhPJGHV9L/ahlsJ8hHWNNRElD5sKV2 VXI6eOpzQ9TKqD41BtJnV7EEHcAMM0FVVd5C8r3v3Z39Jbm0Loosjux3JeBp0VyULTCTHa QkfrLPYVAzYvHg399xfERxm3GaBfyuKUASHJXDIPc/BBbtbzcE7LubltpxczdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699289157; 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=Tr/f74ObLhtWOshVZT+Bk3wIeSsHtZBvGzNIgAN4acI=; b=ueF/CeR2lNVrIxj9jEb0oMVpUoG2DzW54ooTJS/Yv4y9zFNr7z4XyC5WmXfr2IW7yVgsbO v/hqGtrxFNb60iZt6c+efYXrsBOPJEhra2gVLfHDsBtm/8SurJ8aTysE3Qs+bjLTPD+9GF MKkXiO8AKcs+lS2pRQSVbyFXNJPgM9z4DPhFVXh0WMpDm301dVTq1Mk2ZyTYtFs52lbxyu YMbwHLGu1chI1ScXbsjfK3/hRUBxaGZMArjwE2iCjV5538EG0KzbJa2egctbU8H5EqbmVg 2OclF7cLX3X2jbZx5jxxOFWkKjVVB0yFT1vfroEVqvrGvQh9QnsQWuLu/9ut2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699289157; a=rsa-sha256; cv=none; b=FF9PpZYn+k5rBsUQuhGaFGe29Gzv4X2a8w9N//LRGKrxeAyXfoBozNAgbRiyFp/s3UyJmm AWCl5b6wZeHPknMXaE5kWHFo8eZ3Ty1wgm6zTAxiZ4NmRd2s0LSj4DzeSikuGiVZdjADUZ emd6MXMqUm7odk8qCM3oJQewEdps6dxj0xm83cY2JgreOjUT/3QBg/ozBCA2+FJvGhePYN E+7utGlHAIum6fXKEEPtmGT7niru/YhY7CE0/bxlrkdK5UvYq2B2G/EK0BJaR7PJ3WlDKu hcDjNAorY4dnStQChokI8ssexOOOTutESuEjBUpde9PD1pChulPj5Z79FJP8ow== 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 4SPHKd1s3Gz14v; Mon, 6 Nov 2023 16:45:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A6GjvJR058567; Mon, 6 Nov 2023 16:45:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A6GjvQT058564; Mon, 6 Nov 2023 16:45:57 GMT (envelope-from git) Date: Mon, 6 Nov 2023 16:45:57 GMT Message-Id: <202311061645.3A6GjvQT058564@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: ae6e3ea5e1fc - stable/14 - ping: Require root user for pytests 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ae6e3ea5e1fcd122f269705a90bd8709fdc6b505 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ae6e3ea5e1fcd122f269705a90bd8709fdc6b505 commit ae6e3ea5e1fcd122f269705a90bd8709fdc6b505 Author: Jose Luis Duran AuthorDate: 2023-10-11 13:57:11 +0000 Commit: Mark Johnston CommitDate: 2023-11-06 16:45:44 +0000 ping: Require root user for pytests atf_python may use vnet jails for creating an isolated test environment. Mark these tests that require root user privileges. Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/863 (cherry picked from commit 4efaf43c6fa76e0daa1ed5ea535d863f15415bf4) --- sbin/ping/tests/test_ping.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/ping/tests/test_ping.py b/sbin/ping/tests/test_ping.py index 2a052b50ce07..3c66e6c54c4d 100644 --- a/sbin/ping/tests/test_ping.py +++ b/sbin/ping/tests/test_ping.py @@ -723,6 +723,7 @@ PING(56=40+8+8 bytes) 2001:db8::1 --> 2001:db8::2 ] @pytest.mark.parametrize("expected", testdata) + @pytest.mark.require_user("root") def test_ping(self, expected): """Test ping""" ping = subprocess.run( @@ -751,6 +752,7 @@ PING(56=40+8+8 bytes) 2001:db8::1 --> 2001:db8::2 ] @pytest.mark.parametrize("expected", ping46_testdata) + @pytest.mark.require_user("root") def test_ping_46(self, expected): """Test ping -4/ping -6""" for version in [4, 6]: