summaryrefslogtreecommitdiff
path: root/test/TEST-36-NUMAPOLICY
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-07-23 00:56:04 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2019-08-05 15:05:32 +0200
commitc7367d7cfdfdcec98f8659f0ed3f1d7b77123903 (patch)
tree8a2ee72cba7fbc548908920c84be1cd1c9dd314f /test/TEST-36-NUMAPOLICY
parentb030847163e9bd63d3dd6eec6ac7f336411faba6 (diff)
downloadsystemd-c7367d7cfdfdcec98f8659f0ed3f1d7b77123903.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.
Diffstat (limited to 'test/TEST-36-NUMAPOLICY')
-rwxr-xr-xtest/TEST-36-NUMAPOLICY/testsuite.sh2
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() {