diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_009_neg.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_009_neg.ksh index 114419179..ed8195c94 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_009_neg.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_009_neg.ksh @@ -76,7 +76,7 @@ function cleanup # # new fs created during the test, cleanup it # - if [[ $found == "false" ]]; then + if [[ $found == "true" ]]; then log_must $ZFS destroy -f $dset fi done diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_010_neg.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_010_neg.ksh index 1f10b9c08..b54203dd3 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_010_neg.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_010_neg.ksh @@ -77,7 +77,7 @@ function cleanup # # new fs created during the test, cleanup it # - if [[ $found == "false" ]]; then + if [[ $found == "true" ]]; then log_must $ZFS destroy -f $dset fi done