summaryrefslogtreecommitdiff
path: root/test/TEST-51-ISSUE-16115/testsuite.sh
blob: 695896ab7ba8f926fe37bec2afeb290829de5f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
set -ex
set -o pipefail

systemd-analyze log-level debug
systemd-analyze log-target console

systemctl start repro-1
systemctl start repro-2
sleep 5 # wait a bit in case there are restarts so we can count them below

[[ "$(systemctl show repro-1 --value -p NRestarts)" == "0" ]]
[[ "$(systemctl show repro-2 --value -p NRestarts)" == "0" ]]

systemd-analyze log-level info

echo OK > /testok

exit 0