From: Frantisek Sumsal Date: Mon, 22 Jul 2019 22:56:04 +0000 (+0200) Subject: test: give strace some time to initialize X-Git-Tag: v243-rc2~63^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7367d7cfdfdcec98f8659f0ed3f1d7b77123903;p=thirdparty%2Fsystemd.git test: give strace some time to initialize The `coproc` implementation seems to be a little bit different in older bash versions, so the `strace` is sometimes started AFTER `systemctl daemon-reload`, which causes unexpected fails. Let's help it a little by sleeping for a bit. --- diff --git a/test/TEST-36-NUMAPOLICY/testsuite.sh b/test/TEST-36-NUMAPOLICY/testsuite.sh index 4b715d305a7..1c8cf7e6b60 100755 --- a/test/TEST-36-NUMAPOLICY/testsuite.sh +++ b/test/TEST-36-NUMAPOLICY/testsuite.sh @@ -34,6 +34,8 @@ journalCursorFile="jounalCursorFile" startStrace() { coproc strace -qq -p 1 -o $straceLog -e set_mempolicy -s 1024 $1 + # Wait for strace to properly "initialize" + sleep $sleepAfterStart } stopStrace() {