diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-07-23 00:56:04 +0200 |
---|---|---|
committer | Jan Synacek <jan.synacek@gmail.com> | 2020-03-11 12:32:25 +0100 |
commit | 66f6f6304d87b2fe0c4f91373c7d1b836de1b054 (patch) | |
tree | 36fb0223356e57421c9ed3f6afb1e6633dea3550 | |
parent | ad3e4a0f010c9497b01d89de54213af982f8afd2 (diff) | |
download | systemd-66f6f6304d87b2fe0c4f91373c7d1b836de1b054.tar.gz |
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
-rwxr-xr-x | test/TEST-36-NUMAPOLICY/testsuite.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/TEST-36-NUMAPOLICY/testsuite.sh b/test/TEST-36-NUMAPOLICY/testsuite.sh index 4b715d305a..1c8cf7e6b6 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() { |