diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-22 08:50:10 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-22 15:57:56 +0100 |
commit | 6b08180ca6f1ceb913f6a69ffcaf96e9818fbdf5 (patch) | |
tree | 9dcb931ed19fc7cfdb9a266a1a962d4efe1a7e1e | |
parent | test-execute: simplify checks if grep output is empty (diff) | |
download | systemd-6b08180ca6f1ceb913f6a69ffcaf96e9818fbdf5.tar.xz systemd-6b08180ca6f1ceb913f6a69ffcaf96e9818fbdf5.zip |
test-execute: allow sit0@ to exist in private network namespace
It's always visible:
$ sudo modprobe sit
$ sudo unshare -n ip l
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default qlen 1000
...
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
...
-rw-r--r-- | test/test-execute/exec-privatenetwork-yes.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-execute/exec-privatenetwork-yes.service b/test/test-execute/exec-privatenetwork-yes.service index 5077f7eed2..a38d24912f 100644 --- a/test/test-execute/exec-privatenetwork-yes.service +++ b/test/test-execute/exec-privatenetwork-yes.service @@ -2,6 +2,6 @@ Description=Test for PrivateNetwork [Service] -ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -v ": lo:"' +ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -Ev ": (lo|sit0@.*):"' Type=oneshot PrivateNetwork=yes |