mirror_zfs/tests/zfs-tests/tests/functional/snapshot
Brian Behlendorf af9aa4a216 ZTS: Standardize use of destroy_dataset in cleanup
When cleaning up a test case standardize on using the convention:

    datasetexists $ds && destroy_dataset $ds <flags>

By using 'destroy_dataset' instead of 'log_must zfs destroy' we ensure
that the destroy is retried in the event that a ZFS volume is busy.
This helps ensures ensure tests are fully cleaned up and prevents false
positive test failures on Linux.

Note that all of the tests which used 'zfs destroy' in cleanup have
been updated even if they don't use volumes.  This was done to
clearly establish the expected convention.

Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #12663
2021-11-02 09:51:32 -07:00
..
cleanup.ksh ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
clone_001_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
Makefile.am Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
rollback_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rollback_002_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rollback_003_pos.ksh Partially revert 5a6ac4c 2019-11-18 13:05:56 -08:00
setup.ksh ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
snapshot_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
snapshot_002_pos.ksh Fix typos in tests/ 2019-09-02 17:58:26 -07:00
snapshot_003_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
snapshot_004_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
snapshot_005_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
snapshot_006_pos.ksh Fix typos in tests/ 2019-09-02 17:58:26 -07:00
snapshot_007_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
snapshot_008_pos.ksh Enable remaining tests 2017-05-22 12:34:32 -04:00
snapshot_009_pos.ksh Block_device_wait does not return an error code 2019-06-10 09:21:08 -07:00
snapshot_010_pos.ksh Block_device_wait does not return an error code 2019-06-10 09:21:08 -07:00
snapshot_011_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
snapshot_012_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
snapshot_013_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
snapshot_014_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
snapshot_015_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
snapshot_016_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
snapshot_017_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
snapshot.cfg Enable remaining tests 2017-05-22 12:34:32 -04:00