zfs/tests/zfs-tests/tests/functional/userquota
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
..
Makefile.am Revert "Fix raw sends on encrypted datasets when copying back snapshots" 2021-05-13 10:00:17 -07:00
cleanup.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
groupspace_001_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
groupspace_002_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
groupspace_003_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
setup.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
userquota.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
userquota_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
userquota_002_pos.ksh ZTS: path cleanup 2018-08-30 13:46:55 -07:00
userquota_003_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
userquota_004_pos.ksh Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
userquota_005_neg.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userquota_006_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userquota_007_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
userquota_008_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
userquota_009_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userquota_010_pos.ksh Fix typos in tests/ 2019-09-02 17:58:26 -07:00
userquota_011_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userquota_012_neg.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userquota_013_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
userquota_common.kshlib Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
userspace_001_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userspace_002_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userspace_003_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
userspace_encrypted.ksh Fix 'zfs userspace' for received datasets in encrypted root 2020-11-16 09:10:29 -08:00