daandemeyer / rpms / systemd

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