From 35e4b82cedc984a9bdbbf2964987d413245f77ca Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Dec 15 2020 09:45:47 +0000 Subject: 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. (cherry picked from commit c7367d7cfdfdcec98f8659f0ed3f1d7b77123903) Related: #1808940 patch_name: 0338-test-give-strace-some-time-to-initialize.patch present_in_specfile: true location_in_specfile: 338 squash_commits: true --- diff --git a/test/TEST-36-NUMAPOLICY/testsuite.sh b/test/TEST-36-NUMAPOLICY/testsuite.sh index 4b715d3..1c8cf7e 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() {