From 5a5170884a6131c9f4346dd130d50a945d425853 Mon Sep 17 00:00:00 2001 From: ChaoyuZhang Date: Wed, 17 Aug 2016 08:57:25 +0800 Subject: [PATCH] Update zfs_create_(009,010)_neg.ksh Just cleanup the new fs created during the test, so the "$found" should be "true". Signed-off-by: ChaoyuZhang Signed-off-by: Brian Behlendorf Closes #4978 --- .../tests/functional/cli_root/zfs_create/zfs_create_009_neg.ksh | 2 +- .../tests/functional/cli_root/zfs_create/zfs_create_010_neg.ksh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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