ZTS: zpool_create_002 clean up leftover filedisk

zpool_create_002_pos did not clean up filedisk files left over from
running the test.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: bunder2015 <omfgbunder@gmail.com>
Closes #7435
Closes #7439
This commit is contained in:
bunder2015 2018-04-15 18:17:44 -04:00 committed by Brian Behlendorf
parent 5284f43a1e
commit 3eba666332
1 changed files with 2 additions and 2 deletions

View File

@ -50,14 +50,14 @@ function cleanup
for pool in $TESTPOOL $TESTPOOL1 $TESTPOOL2 $TESTPOOL3 $TESTPOOL4 \ for pool in $TESTPOOL $TESTPOOL1 $TESTPOOL2 $TESTPOOL3 $TESTPOOL4 \
$TESTPOOL5 $TESTPOOL6 $TESTPOOL5 $TESTPOOL6
do do
poolexists $pool && destroy_pool $pool destroy_pool $pool
done done
clean_blockfile "$TESTDIR0 $TESTDIR1" clean_blockfile "$TESTDIR0 $TESTDIR1"
for file in $FILEDISK0 $FILEDISK1 $FILEDISK2 for file in $FILEDISK0 $FILEDISK1 $FILEDISK2
do do
if [[ -e $file ]]; then if [[ -e $TEST_BASE_DIR/$file ]]; then
rm -f $TEST_BASE_DIR/$file rm -f $TEST_BASE_DIR/$file
fi fi
done done