17aa40
From de7125dcfe6d6c8af05262ab786f9fe7cbf15113 Mon Sep 17 00:00:00 2001
eb8b6e
From: Frantisek Sumsal <frantisek@sumsal.cz>
eb8b6e
Date: Wed, 15 Dec 2021 12:15:19 +0100
eb8b6e
Subject: [PATCH] test: make TEST-47 less racy
eb8b6e
eb8b6e
Based on:
eb8b6e
  - 2e7090e94d0c8b31d418555ab2f6a9b75318f6a4
eb8b6e
  - e00e2e0b50bbd120290572c8d1242703fb98b34e
eb8b6e
  - 197298ff9fc930de450330095cc5b67d165d0801
eb8b6e
17aa40
Related: #2017033
eb8b6e
---
eb8b6e
 test/TEST-47-ISSUE-14566/testsuite.sh | 2 ++
eb8b6e
 1 file changed, 2 insertions(+)
eb8b6e
eb8b6e
diff --git a/test/TEST-47-ISSUE-14566/testsuite.sh b/test/TEST-47-ISSUE-14566/testsuite.sh
eb8b6e
index d917cf52ff..b12b50e96c 100755
eb8b6e
--- a/test/TEST-47-ISSUE-14566/testsuite.sh
eb8b6e
+++ b/test/TEST-47-ISSUE-14566/testsuite.sh
eb8b6e
@@ -6,11 +6,13 @@ systemd-analyze log-level debug
eb8b6e
 systemd-analyze log-target console
eb8b6e
 
eb8b6e
 systemctl start issue_14566_test
eb8b6e
+sleep 4
eb8b6e
 systemctl status issue_14566_test
eb8b6e
 
eb8b6e
 leaked_pid=$(cat /leakedtestpid)
eb8b6e
 
eb8b6e
 systemctl stop issue_14566_test
eb8b6e
+sleep 4
eb8b6e
 
eb8b6e
 # Leaked PID will still be around if we're buggy.
eb8b6e
 # I personally prefer to see 42.