]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Wait on all events in events_001_pos.ksh
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Nov 2020 17:19:45 +0000 (09:19 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Nov 2020 17:51:37 +0000 (09:51 -0800)
commitb42f36f0b0cb42538870bda81d1d96b9edb27035
treea595f01c5e47ce6ce0eda664446ed8f0f9debdc4
parenta30fed54f4b1b00d18c7ff48f181da1007e405e6
ZTS: Wait on all events in events_001_pos.ksh

The events_001_pos.ksh test case can fail because it's possible,
and correct, for the config_sync event to be posted after the last
"expected" event.  To accommodate this the run_and_verify() function
has been updated to wait for all non-history events, not just the
last event.  This does not increase the run time of the test as
long as all the events do get generated.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11147
tests/zfs-tests/tests/functional/events/events_common.kshlib