summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-15 10:12:18 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-15 10:12:18 +0200
commitfe4bd4e501702b78d88cae868480acee11486347 (patch)
tree9ef07301a0227bc26ff8d94fbc53d85c55c136ee /test
parenttest/test-functions: drop all prefixes (diff)
downloadsystemd-fe4bd4e501702b78d88cae868480acee11486347.tar.xz
systemd-fe4bd4e501702b78d88cae868480acee11486347.zip
test/test-functions: adjust to Exec*= paths not being absolute
Diffstat (limited to 'test')
-rw-r--r--test/test-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions
index 767b41e597..c735ef777d 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -504,7 +504,7 @@ install_execs() {
export PKG_CONFIG_PATH=$BUILD_DIR/src/core/
systemdsystemunitdir=$(pkg-config --variable=systemdsystemunitdir systemd)
systemduserunitdir=$(pkg-config --variable=systemduserunitdir systemd)
- sed -n 's|^Exec[a-zA-Z]*=[^/]*\(/[^ ]*\).*|\1|gp' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
+ sed -r -n 's|^Exec[a-zA-Z]*=[@+!-]*([^ ]+).*|\1|gp' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
| sort -u | while read i; do
# some {rc,halt}.local scripts and programs are okay to not exist, the rest should
inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ]