]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: pool_checkpoint improvements
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 3 Apr 2021 15:33:22 +0000 (08:33 -0700)
committerGitHub <noreply@github.com>
Sat, 3 Apr 2021 15:33:22 +0000 (08:33 -0700)
commitec580225d2b2fb78ea9e12d0b08a185fbb50c7a6
treef68930e49ce42caa01b99c3f94e0f27e482ba515
parentbf169e9f15efbc343b931f20cfad5d2b59c8a821
ZTS: pool_checkpoint improvements

The pool_checkpoint tests may incorrectly fail because several of
them invoke zdb for an imported pool.  In this scenario it's not
unexpected for zdb to fail if the pool is modified.  To resolve
this these zdb checks are now done after the pool has been exported.

Additionally, the default cleanup functions assumed the pool would
be imported when they were run.  If this was not the case they're
exit early and fail to cleanup all of the test state causing
subsequent tests to fail.  Add a check to only destroy the pool
when it is imported.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11832
tests/zfs-tests/tests/functional/pool_checkpoint/checkpoint_big_rewind.ksh
tests/zfs-tests/tests/functional/pool_checkpoint/checkpoint_capacity.ksh
tests/zfs-tests/tests/functional/pool_checkpoint/checkpoint_discard_busy.ksh
tests/zfs-tests/tests/functional/pool_checkpoint/pool_checkpoint.kshlib