address timing issues in padding system test

'rndc stats' is not instantaneous. Wait for the dump to complete
before looking at the content.
This commit is contained in:
Mark Andrews
2019-12-18 13:23:58 +11:00
parent a2254f01c4
commit b3f06729e5
4 changed files with 23 additions and 13 deletions

View File

@@ -378,14 +378,14 @@ nextpartpeek() {
_search_log() (
msg="$1"
file="$2"
nextpart "$file" | grep -F "$msg" > /dev/null
nextpart "$file" | grep -F -e "$msg" > /dev/null
)
# _search_log_peek: look for message $1 in file $2 with nextpartpeek().
_search_log_peek() (
msg="$1"
file="$2"
nextpartpeek "$file" | grep -F "$msg" > /dev/null
nextpartpeek "$file" | grep -F -e "$msg" > /dev/null
)
# wait_for_log: wait until message $2 in file $3 appears. Bail out after