summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-22 08:50:10 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-22 15:57:56 +0100
commit6b08180ca6f1ceb913f6a69ffcaf96e9818fbdf5 (patch)
tree9dcb931ed19fc7cfdb9a266a1a962d4efe1a7e1e
parenttest-execute: simplify checks if grep output is empty (diff)
downloadsystemd-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.service2
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