From a35b4cc8cca6eed5e93d54aa9ca2c72273a8943b Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Sat, 16 Sep 2017 19:36:44 -0700 Subject: [PATCH] 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 Reviewed-by: Giuseppe Di Natale Signed-off-by: Brian Behlendorf Closes #6651 --- tests/zfs-tests/tests/functional/events/events_002_pos.ksh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/zfs-tests/tests/functional/events/events_002_pos.ksh b/tests/zfs-tests/tests/functional/events/events_002_pos.ksh index 7769b45c8..6f6ab541a 100755 --- a/tests/zfs-tests/tests/functional/events/events_002_pos.ksh +++ b/tests/zfs-tests/tests/functional/events/events_002_pos.ksh @@ -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