From: Lennart Poettering Date: Tue, 26 Mar 2019 16:39:36 +0000 (+0100) Subject: test: add some basic testing that "systemctl start -T" does something X-Git-Tag: v242-rc1~52^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f087c7e072bb338d5c7c0781c9fbc900612efd18;p=thirdparty%2Fsystemd.git test: add some basic testing that "systemctl start -T" does something --- diff --git a/test/TEST-03-JOBS/test-jobs.sh b/test/TEST-03-JOBS/test-jobs.sh index e66ea53621f..42190cf4780 100755 --- a/test/TEST-03-JOBS/test-jobs.sh +++ b/test/TEST-03-JOBS/test-jobs.sh @@ -26,6 +26,13 @@ grep 'sleep\.service.*running' /root/list-jobs.txt grep 'hello\.service' /root/list-jobs.txt && exit 1 systemctl stop sleep.service hello-after-sleep.target +# Some basic testing that --show-transaction does something useful +! systemctl is-active systemd-importd +systemctl -T start systemd-importd +systemctl is-active systemd-importd +systemctl --show-transaction stop systemd-importd +! systemctl is-active systemd-importd + # Test for a crash when enqueuing a JOB_NOP when other job already exists systemctl start --no-block hello-after-sleep.target # hello.service should still be waiting, so these try-restarts will collapse