summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wren Kennedy <[email protected]>2020-05-14 10:39:47 -0600
committerGitHub <[email protected]>2020-05-14 09:39:47 -0700
commite1fcd940e7a550e0631fb7e80c5df6d84c446d28 (patch)
treee3a079507048d2ad34738ef4c87c6a656d8e943b
parent41035a049643ff7083a6cb6cd43b8eb70a7d18a1 (diff)
ZTS: zpool_split_indirect deletes zfstest log file
The cleanup routine for this test attempts to remove some temporary files with `rm -f $VDEV_*`, but VDEV_ is undefined. As a result, all files in the current working directory (/var/tmp/test_results/current) get removed instead. This includes the complete log file of all tests. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: George Amanakis <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: John Kennedy <[email protected]> Closes #10324
-rwxr-xr-xtests/zfs-tests/tests/functional/cli_root/zpool_split/zpool_split_indirect.ksh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_split/zpool_split_indirect.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool_split/zpool_split_indirect.ksh
index d6b0e7358..13f0d08b7 100755
--- a/tests/zfs-tests/tests/functional/cli_root/zpool_split/zpool_split_indirect.ksh
+++ b/tests/zfs-tests/tests/functional/cli_root/zpool_split/zpool_split_indirect.ksh
@@ -16,6 +16,7 @@
#
# Copyright (c) 2020, George Amanakis. All rights reserved.
+# Copyright (c) 2020 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
@@ -42,7 +43,7 @@ function cleanup
if poolexists $TESTPOOL2 ; then
destroy_pool $TESTPOOL2
fi
- rm -f $VDEV_*
+ rm -f $VDEV_TEMP $VDEV_M1 $VDEV_M2
}
log_onexit cleanup