projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b030847
)
test: give strace some time to initialize
author
Frantisek Sumsal
<frantisek@sumsal.cz>
Mon, 22 Jul 2019 22:56:04 +0000
(
00:56
+0200)
committer
Frantisek 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
patch
|
blob
|
history
diff --git
a/test/TEST-36-NUMAPOLICY/testsuite.sh
b/test/TEST-36-NUMAPOLICY/testsuite.sh
index 4b715d305a7d19487e3e0cd1dafc90951964aab2..1c8cf7e6b60ca3ed78236c90751ef67aaf3575f9 100755
(executable)
--- 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() {