mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 17:44:17 +01:00
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
This commit is contained in:
parent
b86e4812cc
commit
4efaf43c6f
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user