mirror_zfs/tests/zfs-tests/tests/functional/reservation
Brian Behlendorf ec1b033413 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-12 16:31:55 -08:00
..
cleanup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
Makefile.am Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_001_pos.ksh Fix typos in tests/ 2019-08-30 16:52:00 -07:00
reservation_002_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_003_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_004_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_005_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_006_pos.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_007_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_008_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_009_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_010_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_011_pos.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_012_pos.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_013_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_014_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_015_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_016_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_017_pos.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_018_pos.ksh ZTS: Standardize use of destroy_dataset in cleanup 2021-11-12 16:31:55 -08:00
reservation_019_pos.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_020_pos.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_021_neg.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation_022_pos.ksh Rename reservation tests from *.sh to *.ksh 2019-05-23 15:42:03 -07:00
reservation.cfg OpenZFS 9112 - Improve allocation performance on high-end systems 2018-07-31 10:52:33 -07:00
reservation.shlib OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
setup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00