]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: give strace some time to initialize
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 22 Jul 2019 22:56:04 +0000 (00:56 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 5 Aug 2019 13:05:32 +0000 (15:05 +0200)
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.

test/TEST-36-NUMAPOLICY/testsuite.sh

index 4b715d305a7d19487e3e0cd1dafc90951964aab2..1c8cf7e6b60ca3ed78236c90751ef67aaf3575f9 100755 (executable)
@@ -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() {