]>
Commit | Line | Data |
---|---|---|
bdfa9657 | 1 | #!/usr/bin/env bash |
c1566ef0 AZ |
2 | set -ex |
3 | set -o pipefail | |
4 | ||
5 | systemd-analyze log-level debug | |
6 | systemd-analyze log-target console | |
7 | ||
bdfa9657 | 8 | systemctl start testsuite-47-repro |
2e7090e9 | 9 | sleep 4 |
bdfa9657 | 10 | systemctl status testsuite-47-repro |
c1566ef0 AZ |
11 | |
12 | leaked_pid=$(cat /leakedtestpid) | |
13 | ||
bdfa9657 | 14 | systemctl stop testsuite-47-repro |
2e7090e9 | 15 | sleep 4 |
c1566ef0 AZ |
16 | |
17 | # Leaked PID will still be around if we're buggy. | |
18 | # I personally prefer to see 42. | |
19 | ps -p "$leaked_pid" && exit 42 | |
20 | ||
21 | systemd-analyze log-level info | |
22 | ||
23 | echo OK > /testok | |
24 | ||
25 | exit 0 |