summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-26 17:39:36 +0100
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2020-11-02 15:01:00 +0100
commitf31afbfd2fa68e20a10a8432fb4714a6d4e1170a (patch)
tree0998702b90b700f5721f1c9008733f4a53e4b2e0
parentcacf7a619cdccd9a6da6c2fe7361eac121b9ea0b (diff)
downloadsystemd-f31afbfd2fa68e20a10a8432fb4714a6d4e1170a.tar.gz
test: add some basic testing that "systemctl start -T" does something
(cherry picked from commit f087c7e072bb338d5c7c0781c9fbc900612efd18) Related: #846319
-rwxr-xr-xtest/TEST-03-JOBS/test-jobs.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/TEST-03-JOBS/test-jobs.sh b/test/TEST-03-JOBS/test-jobs.sh
index e66ea53621..42190cf478 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