From: Yu Watanabe Date: Tue, 3 Sep 2024 02:46:45 +0000 (+0900) Subject: test: add test cases of "systemctl cat" for nonexistent units X-Git-Tag: v257-rc1~555^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c47f2a26b03b7ec5e8e7dbec896e8da568d57214;p=thirdparty%2Fsystemd.git test: add test cases of "systemctl cat" for nonexistent units --- diff --git a/test/units/TEST-26-SYSTEMCTL.sh b/test/units/TEST-26-SYSTEMCTL.sh index 1471f3fd9e4..ed7b9f64bff 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)"