mirror_zfs/tests/zfs-tests/tests/functional/cli_root
Brian Behlendorf 90b77a0364
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-10-25 15:13:50 -06:00
..
zdb Quick fixes for two ZTS failures 2021-06-01 15:34:19 -06:00
zfs ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_bookmark ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_change-key ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_clone ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_copies ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_create ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_destroy ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_diff ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_get ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_ids_to_path Fix typos 2020-06-09 21:24:09 -07:00
zfs_inherit ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_jail FreeBSD: Fix zfs jail and add a test 2020-08-01 08:44:54 -07:00
zfs_load-key ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_mount ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_program ZTS: zfs_program_json 2019-12-27 12:12:41 -08:00
zfs_promote ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_property ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_receive ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_rename ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_reservation OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_rollback ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_send ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_set ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_share ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_snapshot ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_sysfs Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
zfs_unload-key ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_unmount ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_unshare ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_upgrade ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zfs_wait Add 'zfs wait' command 2020-04-01 10:02:06 -07:00
zpool ZTS: Improve cleanup in zpool tests 2021-03-07 09:41:01 -08:00
zpool_add Fix various typos 2021-04-02 18:52:15 -07:00
zpool_attach vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool_clear Add subcommand to wait for background zfs activity to complete 2019-09-13 18:09:06 -07:00
zpool_create Update cache file when setting compatibility property 2021-06-24 14:30:02 -07:00
zpool_destroy ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zpool_detach OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_events Trim excess shellcheck annotations. Widen to all non-Korn scripts 2021-05-20 08:55:23 -07:00
zpool_expand Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_export ZTS: zpool_export test improvements 2021-01-26 13:14:04 -08:00
zpool_get Add "compatibility" property for zpool feature sets 2021-02-17 21:30:45 -08:00
zpool_history ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zpool_import ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zpool_initialize Cancel TRIM / initialize on FAULTED non-writeable vdevs 2021-03-02 10:27:27 -08:00
zpool_labelclear ZTS: Avoid nonportable cmp flag 2020-02-19 09:03:31 -08:00
zpool_offline Force fault a vdev with 'zpool offline -f' 2017-05-19 12:30:16 -07:00
zpool_online Wait for resilver after online 2018-04-13 18:04:10 -07:00
zpool_remove ZTS: Eliminate partitioning from zpool_remove 2020-02-13 12:10:35 -08:00
zpool_reopen ZTS: Fix a few defaults 2020-01-31 08:51:23 -08:00
zpool_replace vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool_resilver ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
zpool_scrub ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
zpool_set vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool_split ZTS: three small follow up fixes for #11167 2020-12-09 21:27:12 -08:00
zpool_status Add "compatibility" property for zpool feature sets 2021-02-17 21:30:45 -08:00
zpool_sync OpenZFS 9166 - zfs storage pool checkpoint 2018-06-26 10:07:42 -07:00
zpool_trim Cancel TRIM / initialize on FAULTED non-writeable vdevs 2021-03-02 10:27:27 -08:00
zpool_upgrade Add "compatibility" property for zpool feature sets 2021-02-17 21:30:45 -08:00
zpool_wait Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
cli_common.kshlib OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
Makefile.am FreeBSD: Fix zfs jail and add a test 2020-08-01 08:44:54 -07:00