]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Update zfs_create_(009,010)_neg.ksh
authorChaoyuZhang <zhang.chaoyu@zte.com.cn>
Wed, 17 Aug 2016 00:57:25 +0000 (08:57 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 Aug 2016 20:00:11 +0000 (13:00 -0700)
Just cleanup the new fs created during the test, so the "$found"
should be "true".

Signed-off-by: ChaoyuZhang <zhang.chaoyu@zte.com.cn>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4978

tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_009_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_010_neg.ksh

index 11441917958910495e64927bc5a15b708bdbc04c..ed8195c940067ceb04d4a4c23f3b680bf805b287 100755 (executable)
@@ -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
index 1f10b9c0808ee8f0bc8494a3c5cd23baa3f669c3..b54203dd3486ad1c0e9db632e3bc20914b213ade 100755 (executable)
@@ -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