]> git.proxmox.com Git - mirror_zfs.git/commitdiff
OpenZFS 9190 - Fix cleanup routine in import_cachefile_device_replaced.ksh
authorPavel Zakharov <pavel.zakharov@delphix.com>
Tue, 18 Oct 2016 02:51:25 +0000 (22:51 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 14 May 2018 18:30:28 +0000 (14:30 -0400)
Must clear slow-disk zinject injections in test cleanup routine.
Otherwise, when this test fails, it causes most subsequent tests
to fail.

Authored by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Approved by: Robert Mustacchi <rm@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
OpenZFS-issue: https://illumos.org/issues/9190
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/762c6b4
Closes #7530

tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import.kshlib

index b785a2dbf1d5a73195c992a5fb266974fcdef0d1..f53b88f794e4d657beb1e28a63f9a935c8db73c3 100644 (file)
@@ -23,6 +23,9 @@
 #
 function cleanup
 {
+       # clear any remaining zinjections
+       log_must zinject -c all > /dev/null
+
        destroy_pool $TESTPOOL1
 
        log_must rm -f $CPATH $CPATHBKP $CPATHBKP2 $MD5FILE $MD5FILE2