ZTS fix events_002_pos.sh failure

Fix spurious events_002_pos failures by waiting longer before
grabbing the log to check for the resilver_finish event.  It
would be better to rework this logic to wait only as long as
needed rather than a fixed timeout.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6651
This commit is contained in:
Brian Behlendorf 2017-09-16 19:36:44 -07:00 committed by GitHub
parent 787acae0b5
commit a35b4cc8cc
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ done
# 5. Start the ZED and verify it only handled the new missed events.
log_must zed_start
log_must sleep 3
log_must sleep 20
diff $ZEDLET_DIR/zed.debug.log.old $ZEDLET_DIR/zed.debug.log | \
grep "^> " | sed 's/^> //g' >$TMP_EVENTS_ZED