Increase delay for zed log in events tests

In zed event test cases, a brief delay was introduced
to allow for events to make it to the zed log. On at least
one buildbot builder, the 1 second delay is not long enough.
Therefore, increasing the delay should ensure the zed has
more than enough time to write to its log.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6395
This commit is contained in:
Giuseppe Di Natale 2017-07-24 13:02:42 -07:00 committed by Brian Behlendorf
parent 871e07321c
commit f6837d9b53
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function run_and_verify
log_must zpool events > $TMP_EVENTS 2>/dev/null log_must zpool events > $TMP_EVENTS 2>/dev/null
log_must zpool events -v > $TMP_EVENTS_FULL 2>/dev/null log_must zpool events -v > $TMP_EVENTS_FULL 2>/dev/null
if [[ -f $zedlog ]]; then if [[ -f $zedlog ]]; then
sleep 1 # Brief delay for the ZED to handle the event. sleep 5 # Brief delay for the ZED to handle the event.
diff $zedlog.old $zedlog | grep "^> " | sed 's/^> //g' \ diff $zedlog.old $zedlog | grep "^> " | sed 's/^> //g' \
>$TMP_EVENTS_ZED >$TMP_EVENTS_ZED
fi fi