From 2a11a51491d3113f8d198c7d30ead8b555e60a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 15 Mar 2022 17:45:34 +0100 Subject: [PATCH] test-systemctl-enable: enhance the test for unit file linking Current behaviour is wrong, but it cannot be shown in this test, because we don't have a running systemd instance here. (cherry picked from commit 85516075a24fd2f1316575570d7d5f5a37f43dbd) Related: #2082131 --- test/test-systemctl-enable.sh | 39 ++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/test/test-systemctl-enable.sh b/test/test-systemctl-enable.sh index 0a0123b9d7..220ebfdab7 100644 --- a/test/test-systemctl-enable.sh +++ b/test/test-systemctl-enable.sh @@ -401,7 +401,7 @@ test ! -h "$root/etc/systemd/system/link4.service" test ! -h "$root/etc/systemd/system/link4alias.service" test ! -h "$root/etc/systemd/system/link4alias2.service" -: -------issue 661: link and enable on unit file-------------- +: -------issue 661: enable on unit file-------------- test ! -e "$root/etc/systemd/system/link5.service" cat >"$root/etc/systemd/system/link5.service" <"$root/link5copy.service" <"$root/etc/systemd/system/link5@.path" <