]> git.proxmox.com Git - mirror_zfs.git/commitdiff
ZTS: zpool_split_indirect deletes zfstest log file
authorJohn Wren Kennedy <john.kennedy@delphix.com>
Thu, 14 May 2020 16:39:47 +0000 (10:39 -0600)
committerGitHub <noreply@github.com>
Thu, 14 May 2020 16:39:47 +0000 (09:39 -0700)
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 <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: George Amanakis <gamanakis@gmail.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: John Kennedy <john.kennedy@delphix.com>
Closes #10324

tests/zfs-tests/tests/functional/cli_root/zpool_split/zpool_split_indirect.ksh

index d6b0e7358ed77462df71615539a23cc6935ac5bb..13f0d08b7f200d47a12f72cfd7d713fc620ec667 100755 (executable)
@@ -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