diff options
author | bunder2015 <[email protected]> | 2018-04-15 18:17:44 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-15 15:17:44 -0700 |
commit | 3eba666332629bffc5c247326939556b511af6e7 (patch) | |
tree | 9dc5f4f9a5770f32294418a136b89981f4428eea | |
parent | 5284f43a1e66f6237bb300f256460b4220398f3e (diff) |
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 <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: bunder2015 <[email protected]>
Closes #7435
Closes #7439
-rwxr-xr-x | tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_002_pos.ksh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_002_pos.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_002_pos.ksh index bc50b65cc..b98e5ac92 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_002_pos.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_002_pos.ksh @@ -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 |