dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
b9a53a
From 66f6f6304d87b2fe0c4f91373c7d1b836de1b054 Mon Sep 17 00:00:00 2001
b9a53a
From: Frantisek Sumsal <frantisek@sumsal.cz>
b9a53a
Date: Tue, 23 Jul 2019 00:56:04 +0200
be3800
Subject: [PATCH] test: give strace some time to initialize
b9a53a
b9a53a
The `coproc` implementation seems to be a little bit different in older
b9a53a
bash versions, so the `strace` is sometimes started AFTER `systemctl
b9a53a
daemon-reload`, which causes unexpected fails. Let's help it a little by
b9a53a
sleeping for a bit.
b9a53a
b9a53a
(cherry picked from commit c7367d7cfdfdcec98f8659f0ed3f1d7b77123903)
b9a53a
b9a53a
Related: #1808940
b9a53a
---
b9a53a
 test/TEST-36-NUMAPOLICY/testsuite.sh | 2 ++
b9a53a
 1 file changed, 2 insertions(+)
b9a53a
b9a53a
diff --git a/test/TEST-36-NUMAPOLICY/testsuite.sh b/test/TEST-36-NUMAPOLICY/testsuite.sh
b9a53a
index 4b715d305a..1c8cf7e6b6 100755
b9a53a
--- a/test/TEST-36-NUMAPOLICY/testsuite.sh
b9a53a
+++ b/test/TEST-36-NUMAPOLICY/testsuite.sh
b9a53a
@@ -34,6 +34,8 @@ journalCursorFile="jounalCursorFile"
b9a53a
 
b9a53a
 startStrace() {
b9a53a
     coproc strace -qq -p 1 -o $straceLog -e set_mempolicy -s 1024 $1
b9a53a
+    # Wait for strace to properly "initialize"
b9a53a
+    sleep $sleepAfterStart
b9a53a
 }
b9a53a
 
b9a53a
 stopStrace() {