diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-28 20:03:37 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-29 16:17:57 +0200 |
commit | 2a2d002fb0913fe931b4ac903ca425a725aa79c0 (patch) | |
tree | f0a09a6d7f2b70ccb348d404ea88385a800067ce /test/test-systemctl-enable.sh | |
parent | test-systemctl-enable: use magic syntax to allow inverted tests (diff) | |
download | systemd-2a2d002fb0913fe931b4ac903ca425a725aa79c0.tar.xz systemd-2a2d002fb0913fe931b4ac903ca425a725aa79c0.zip |
test-systemctl-enable: also use freshly-built systemd-id128
Tests were failing on centos7 because systemd-id128 is not in path.
Diffstat (limited to 'test/test-systemctl-enable.sh')
-rw-r--r-- | test/test-systemctl-enable.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test-systemctl-enable.sh b/test/test-systemctl-enable.sh index ecb433380e..8eb2828e35 100644 --- a/test/test-systemctl-enable.sh +++ b/test/test-systemctl-enable.sh @@ -6,6 +6,7 @@ set -ex export SYSTEMD_IGNORE_CHROOT=1 systemctl=${1:-systemctl} +systemd_id128=${2:-systemd-id128} unset root cleanup() { @@ -606,7 +607,7 @@ check_alias o 'the-id' check_alias w '39a' check_alias W 'right' -check_alias b "$(systemd-id128 boot-id)" +check_alias b "$("$systemd_id128" boot-id)" # Specifiers not available for [Install] ( ! check_alias C '' ) @@ -637,7 +638,7 @@ check_alias l "$(uname -n | sed 's/\..*//')" test ! -e "$root/etc/machine-id" ( ! check_alias m '' ) -systemd-id128 new >"$root/etc/machine-id" +"$systemd_id128" new >"$root/etc/machine-id" check_alias m "$(cat "$root/etc/machine-id")" check_alias n 'some-some-link6@.socket' |