From 189bd0b67085a6c26589201d256ff46a121f142f Mon Sep 17 00:00:00 2001 From: Pavel Zakharov Date: Mon, 17 Oct 2016 22:51:25 -0400 Subject: OpenZFS 9190 - Fix cleanup routine in import_cachefile_device_replaced.ksh 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 Reviewed by: Dan Kimmel Reviewed by: John Kennedy Reviewed-by: Giuseppe Di Natale Reviewed-by: George Melikov Approved by: Robert Mustacchi Ported-by: Brian Behlendorf OpenZFS-issue: https://illumos.org/issues/9190 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/762c6b4 Closes #7530 --- .../tests/functional/cli_root/zpool_import/zpool_import.kshlib | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/zfs-tests') diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import.kshlib b/tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import.kshlib index b785a2dbf..f53b88f79 100644 --- a/tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import.kshlib +++ b/tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import.kshlib @@ -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 -- cgit v1.2.3