mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
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 <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
This commit is contained in:
parent
41035a0496
commit
e1fcd940e7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user