]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add some basic testing that "systemctl start -T" does something
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Mar 2019 16:39:36 +0000 (17:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Mar 2019 11:37:37 +0000 (12:37 +0100)
test/TEST-03-JOBS/test-jobs.sh

index e66ea53621f3590201c6bd4546945a3229296a55..42190cf47800fafca06fa3095c4772493153e5e6 100755 (executable)
@@ -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