summaryrefslogtreecommitdiff
path: root/test/networkd-test.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-08-27 01:48:23 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-08-30 16:00:07 +0900
commit5ed0dcf4d552271115d96d8d22b1a25494b85277 (patch)
tree38874c671865a4271c283c9960d275cbf265f52a /test/networkd-test.py
parent53d133ea1bb4c4ed44c4b6aae42f1feb33d9cb78 (diff)
downloadsystemd-5ed0dcf4d552271115d96d8d22b1a25494b85277.tar.gz
test: drop Exec* prefixes to obtain paths of executables
Diffstat (limited to 'test/networkd-test.py')
-rwxr-xr-xtest/networkd-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/networkd-test.py b/test/networkd-test.py
index 9bf7ee0019..5760ca5137 100755
--- a/test/networkd-test.py
+++ b/test/networkd-test.py
@@ -752,7 +752,7 @@ DNS=192.168.5.1
EOF
# run networkd as in systemd-networkd.service
-exec $(systemctl cat systemd-networkd.service | sed -n '/^ExecStart=/ { s/^.*=//; p}')
+exec $(systemctl cat systemd-networkd.service | sed -n '/^ExecStart=/ { s/^.*=//; s/^[@+-]//; s/^!*//; p}')
''' % {'ifr': self.if_router, 'ifc': self.iface, 'addr6': ipv6 and 'Address=2600::1/64' or '',
'dhopts': dhcpserver_opts or ''})