aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zfs-tests')
-rw-r--r--tests/zfs-tests/include/commands.cfg1
-rw-r--r--tests/zfs-tests/include/libtest.shlib7
-rwxr-xr-xtests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh1
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/zfs-tests/include/commands.cfg b/tests/zfs-tests/include/commands.cfg
index d993a8576..5ca2575fc 100644
--- a/tests/zfs-tests/include/commands.cfg
+++ b/tests/zfs-tests/include/commands.cfg
@@ -132,6 +132,7 @@ export SYSTEM_FILES_LINUX='attr
blockdev
chattr
cksum
+ dmidecode
exportfs
fallocate
fdisk
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index 888abdb75..7e9dd52f1 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -2301,10 +2301,11 @@ function cleanup_devices #vdevs
{
typeset pool="foopool$$"
- if poolexists $pool ; then
- destroy_pool $pool
- fi
+ for vdev in $@; do
+ zero_partitions $vdev
+ done
+ poolexists $pool && destroy_pool $pool
create_pool $pool $@
destroy_pool $pool
diff --git a/tests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh b/tests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh
index d549896ca..8e4c8a077 100755
--- a/tests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh
+++ b/tests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh
@@ -107,7 +107,6 @@ while (( i < ${#vdevs[*]} )); do
create_pool $TESTPOOL1 ${vdevs[i]} $vslices spare $sslices
log_must zpool export $TESTPOOL1
verify_assertion "$rawtargets"
- cleanup_devices $vslices $sslices
(( i = i + 1 ))
done