Skip to content

Commit

Permalink
ZTS: zpool_create_002 clean up leftover filedisk
Browse files Browse the repository at this point in the history
zpool_create_002_pos did not clean up filedisk files left over from
running the test.

Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: bunder2015 <[email protected]>
Closes openzfs#7435
Closes openzfs#7439
  • Loading branch information
bunder2015 authored and behlendorf committed Apr 15, 2018
1 parent 5284f43 commit 3eba666
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ function cleanup
for pool in $TESTPOOL $TESTPOOL1 $TESTPOOL2 $TESTPOOL3 $TESTPOOL4 \
$TESTPOOL5 $TESTPOOL6
do
poolexists $pool && destroy_pool $pool
destroy_pool $pool
done

clean_blockfile "$TESTDIR0 $TESTDIR1"

for file in $FILEDISK0 $FILEDISK1 $FILEDISK2
do
if [[ -e $file ]]; then
if [[ -e $TEST_BASE_DIR/$file ]]; then
rm -f $TEST_BASE_DIR/$file
fi
done
Expand Down

0 comments on commit 3eba666

Please sign in to comment.