ZTS: Wait on all events in events_001_pos.ksh
commit123d2803bfb9b754cee7e721a67a151380efd7e7
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Nov 2020 17:19:45 +0000 (3 09:19 -0800)
committerGitHub <noreply@github.com>
Tue, 3 Nov 2020 17:19:45 +0000 (3 09:19 -0800)
treee82830760f207cea82f9a29752d6d824b7da7c3d
parent59b687232798a4da0e7647cca19a308aa82b5fad
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