From c47f2a26b03b7ec5e8e7dbec896e8da568d57214 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 3 Sep 2024 11:46:45 +0900 Subject: [PATCH] test: add test cases of "systemctl cat" for nonexistent units --- test/units/TEST-26-SYSTEMCTL.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/units/TEST-26-SYSTEMCTL.sh b/test/units/TEST-26-SYSTEMCTL.sh index 1471f3fd9e..ed7b9f64bf 100755 --- a/test/units/TEST-26-SYSTEMCTL.sh +++ b/test/units/TEST-26-SYSTEMCTL.sh @@ -340,6 +340,8 @@ done systemctl is-active "*-journald.service" systemctl cat "*udevd*" systemctl cat "$UNIT_NAME" +(! systemctl cat hopefully-nonexistent-unit.service) +systemctl cat --force hopefully-nonexistent-unit.service systemctl help "$UNIT_NAME" systemctl service-watchdogs systemctl service-watchdogs "$(systemctl service-watchdogs)"