mirror_zfs/tests/zfs-tests/tests/functional/channel_program
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
..
lua_core ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
synctask_core ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
channel_common.kshlib Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
Makefile.am Clean up (k)shlib and cfg file shebangs 2018-04-08 19:37:22 -07:00