mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 18:55:40 +03:00
test: make sure ping works for unprivileged users
This commit is contained in:
parent
a6695a431f
commit
f087837c46
@ -22,9 +22,14 @@ NPROC=$(nproc)
|
||||
MAX_QUEUE_SIZE=${NPROC:-2}
|
||||
mapfile -t TEST_LIST < <(find /usr/lib/systemd/tests/unit-tests/ -maxdepth 1 -type f -name "${TESTS_GLOB}")
|
||||
|
||||
# reset state
|
||||
# Reset state
|
||||
rm -fv /failed-tests /skipped-tests /skipped
|
||||
|
||||
if ! systemd-detect-virt -qc; then
|
||||
# Make sure ping works for unprivileged users (for test-bpf-firewall)
|
||||
sysctl net.ipv4.ping_group_range="0 2147483647"
|
||||
fi
|
||||
|
||||
# Check & report test results
|
||||
# Arguments:
|
||||
# $1: test path
|
||||
|
Loading…
Reference in New Issue
Block a user