mirror of
https://github.com/systemd/systemd.git
synced 2025-02-27 01:57:35 +03:00
test: add a simple test for PrivateNetwork=
This commit is contained in:
parent
4793605db1
commit
e9af462aba
@ -4,6 +4,9 @@ set -e
|
||||
|
||||
TEST_DESCRIPTION="Tests for core PID1 functionality"
|
||||
|
||||
# for testing PrivateNetwork=yes
|
||||
NSPAWN_ARGUMENTS="--capability=CAP_NET_ADMIN"
|
||||
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
|
7
test/units/testsuite-07.private-network.sh
Executable file
7
test/units/testsuite-07.private-network.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
# For issue https://github.com/systemd/systemd/issues/29526
|
||||
systemd-run -p PrivateNetwork=yes --wait /bin/true
|
Loading…
x
Reference in New Issue
Block a user