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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user