summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-51.sh
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2020-06-10 10:18:00 +0200
committerLennart Poettering <lennart@poettering.net>2020-06-10 17:12:55 +0200
commitbb9244781c6fc7608f7cac910269f8987b8adc01 (patch)
tree2630b820bf9736e62c07a76cf231b2bd1c828925 /test/units/testsuite-51.sh
parentdocs: Change suffix for desktop applications to support non-transient services (diff)
downloadsystemd-bb9244781c6fc7608f7cac910269f8987b8adc01.tar.xz
systemd-bb9244781c6fc7608f7cac910269f8987b8adc01.zip
core: don't consider SERVICE_SKIP_CONDITION for abnormal or failure restarts
Fixes: #16115
Diffstat (limited to '')
-rwxr-xr-xtest/units/testsuite-51.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/units/testsuite-51.sh b/test/units/testsuite-51.sh
new file mode 100755
index 0000000000..246412a079
--- /dev/null
+++ b/test/units/testsuite-51.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+set -ex
+set -o pipefail
+
+systemctl start testsuite-51-repro-1
+systemctl start testsuite-51-repro-2
+sleep 5 # wait a bit in case there are restarts so we can count them below
+
+[[ "$(systemctl show testsuite-51-repro-1 -P NRestarts)" == "0" ]]
+[[ "$(systemctl show testsuite-51-repro-2 -P NRestarts)" == "0" ]]
+
+touch /testok