From: Zbigniew Jędrzejewski-Szmek Date: Sat, 15 Sep 2018 08:12:18 +0000 (+0200) Subject: test/test-functions: adjust to Exec*= paths not being absolute X-Git-Tag: v240~698^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10087%2Fhead;p=thirdparty%2Fsystemd.git test/test-functions: adjust to Exec*= paths not being absolute --- diff --git a/test/test-functions b/test/test-functions index 767b41e597a..c735ef777da 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" ]