summaryrefslogtreecommitdiffstats
path: root/test/test-systemctl-enable.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-03-28 20:03:37 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-03-29 16:17:57 +0200
commit2a2d002fb0913fe931b4ac903ca425a725aa79c0 (patch)
treef0a09a6d7f2b70ccb348d404ea88385a800067ce /test/test-systemctl-enable.sh
parenttest-systemctl-enable: use magic syntax to allow inverted tests (diff)
downloadsystemd-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.sh5
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'