]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: filter out ip6tnl0@ and ip6gre0@ interfaces
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Oct 2018 12:08:09 +0000 (14:08 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Oct 2018 12:08:09 +0000 (14:08 +0200)
Those interfaces are created automatically when ip6_tunnel and ip6_gre loaded.
They break the test with exec-privatenetwork-yes.service.

C.f. 6b08180ca6f1ceb913f6a69ffcaf96e9818fbdf5.

test/test-execute/exec-privatenetwork-yes.service

index a38d24912fc3f3b32a2e79d4f3a93bf8b162ba82..ded8d5512636cbe4ac3cc0c919c9a862c8bb7a26 100644 (file)
@@ -2,6 +2,6 @@
 Description=Test for PrivateNetwork
 
 [Service]
-ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -Ev ": (lo|sit0@.*):"'
+ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -Ev ": (lo|(sit0|ip6tnl0|ip6gre0)@.*):"'
 Type=oneshot
 PrivateNetwork=yes