From nobody Wed Oct 11 18:01:09 2023 X-Original-To: dev-commits-src-main@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 4S5LDQ2WxJz4wTtS; Wed, 11 Oct 2023 18:01:10 +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 4S5LDQ1KXJz4Q4f; Wed, 11 Oct 2023 18:01:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697047270; 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=k8vIKftvoW4AWiAgi09ClI4Z2QcPic2V5UvR18P/3t8=; b=JnQTcSk2CorudDFJ8O6Jf/Yukowvhm1p8H6Pk6QWJ2wkbpo/cQi145zUk9y8LRSvdNrGdH 9IRfEnuz4bAS4Yxk4tKK+ZEUsyVctpMBD/MfDuDOGJJbkSxS9R63YVV2AfsfCDKpUOxfC9 HZcnwRqooseN8fEZf89VVMdhvpos30YjrLdh4nacicqbiINeILuM7gZv41TnWPOvXh0fGf dv04+80ViEZ9qZtBOcHnXSTyvxfHeGtDnA0Nydp38N0Wn7h6i1L+swj/AMvFn6ugN36Dq0 ZcQobODn9JUg5/Q15AeKgSTTmiyEIrGn04a6bkkeP0bNAb7f4teX5IfR4MwlFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697047270; a=rsa-sha256; cv=none; b=Xx9z0rOotzSzsQkAHZv6kTPyK2dF1BJ1ARMUKaPof+ecmPu4aqGK4MgUxYN7OrANp97Kt4 fE6RvPo34d96ArJKsRKEf2vfJhcbs/S/5lrjpvI7/Mdl+Rcs7+9rxaI8qSAFY+uijv/wvJ xrw5VCuGBOMt171TChgO/dF9E2U84G3gJZAsFtirfVWQcGH/PK2dja52hfnXtbz2fHXGRB KI0GktXJmCHn4fF+QQ4vZcyp79q7uSOEg1ch0B4ta2xg+I5Px0evMmEu8iPSXR4xhcQuui s8AdxRoQHo8U2ioKBsIjVqTmlNWqwZ6LNTmCcWu4YOWuEp4gycWMTIAAnGo8JQ== 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=1697047270; 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=k8vIKftvoW4AWiAgi09ClI4Z2QcPic2V5UvR18P/3t8=; b=pULR+MDO522Rwi8ufYPhz6qfOlw7NEXq39s/iVpMYuzUNnJ+71AGEyWfu8EsYZVMs+QNYh e6ZkU3yiFHwjRE3FZjLmJjf8971m+APW48sAJZflC1b0fkp1l8NVNDUHQYNTqXkPWklTjB 8BKvZoT2bWm6d2lQCWGz6mbn+IqK/0Lu36680RwKXrNuUWDXdB408vt2OwdGlUtmSraJiK /AY0WRdOEXS/YdkBh7aTMZNjpsYD6MiTD8DjNBBXscaljhwJkP8m0r7yv4PpgqjSoZ9zg+ mQnb5hkzrDx+tzxRkI0Tf8+hB2mxhAQja8D8d0N+zukxF7e0es12NH3kz1cp9A== 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 4S5LDQ0RVQzVkm; Wed, 11 Oct 2023 18:01:10 +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 39BI190p053949; Wed, 11 Oct 2023 18:01:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39BI19jf053946; Wed, 11 Oct 2023 18:01:09 GMT (envelope-from git) Date: Wed, 11 Oct 2023 18:01:09 GMT Message-Id: <202310111801.39BI19jf053946@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: 4efaf43c6fa7 - main - ping: Require root user for pytests List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 4efaf43c6fa76e0daa1ed5ea535d863f15415bf4 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4efaf43c6fa76e0daa1ed5ea535d863f15415bf4 commit 4efaf43c6fa76e0daa1ed5ea535d863f15415bf4 Author: Jose Luis Duran AuthorDate: 2023-10-11 13:57:11 +0000 Commit: Mark Johnston CommitDate: 2023-10-11 17:48:28 +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 --- 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 645940a62cb6..900fbf45d52d 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]: