21255d
From f31afbfd2fa68e20a10a8432fb4714a6d4e1170a Mon Sep 17 00:00:00 2001
21255d
From: Lennart Poettering <lennart@poettering.net>
21255d
Date: Tue, 26 Mar 2019 17:39:36 +0100
21255d
Subject: [PATCH] test: add some basic testing that "systemctl start -T" does
21255d
 something
21255d
21255d
(cherry picked from commit f087c7e072bb338d5c7c0781c9fbc900612efd18)
21255d
21255d
Related: #846319
21255d
---
21255d
 test/TEST-03-JOBS/test-jobs.sh | 7 +++++++
21255d
 1 file changed, 7 insertions(+)
21255d
21255d
diff --git a/test/TEST-03-JOBS/test-jobs.sh b/test/TEST-03-JOBS/test-jobs.sh
21255d
index e66ea53621..42190cf478 100755
21255d
--- a/test/TEST-03-JOBS/test-jobs.sh
21255d
+++ b/test/TEST-03-JOBS/test-jobs.sh
21255d
@@ -26,6 +26,13 @@ grep 'sleep\.service.*running' /root/list-jobs.txt
21255d
 grep 'hello\.service' /root/list-jobs.txt && exit 1
21255d
 systemctl stop sleep.service hello-after-sleep.target
21255d
 
21255d
+# Some basic testing that --show-transaction does something useful
21255d
+! systemctl is-active systemd-importd
21255d
+systemctl -T start systemd-importd
21255d
+systemctl is-active systemd-importd
21255d
+systemctl --show-transaction stop systemd-importd
21255d
+! systemctl is-active systemd-importd
21255d
+
21255d
 # Test for a crash when enqueuing a JOB_NOP when other job already exists
21255d
 systemctl start --no-block hello-after-sleep.target
21255d
 # hello.service should still be waiting, so these try-restarts will collapse