From bb9244781c6fc7608f7cac910269f8987b8adc01 Mon Sep 17 00:00:00 2001 From: Anita Zhang Date: Wed, 10 Jun 2020 01:18:00 -0700 Subject: core: don't consider SERVICE_SKIP_CONDITION for abnormal or failure restarts Fixes: #16115 --- test/units/testsuite-51.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 test/units/testsuite-51.sh (limited to 'test/units/testsuite-51.sh') 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 -- cgit v1.2.3