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.
This commit is contained in:
Frantisek Sumsal
2019-08-05 15:05:32 +02:00
parent b030847163
commit c7367d7cfd
+2
View File
@@ -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() {