X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5600-clone-fail-cleanup.sh;h=acf34cec8f0ce5930f48a6e31ef84b8843097d74;hb=c6955fec546f339b258a1cba0e23618010e5c260;hp=1776b377f3c787977b145980f05aa74da5038657;hpb=a41acc63badf20cbb22cca61039dca9309deaa19;p=git.git diff --git a/t/t5600-clone-fail-cleanup.sh b/t/t5600-clone-fail-cleanup.sh index 1776b377f..acf34cec8 100755 --- a/t/t5600-clone-fail-cleanup.sh +++ b/t/t5600-clone-fail-cleanup.sh @@ -11,13 +11,13 @@ remove the directory before attempting a clone again.' . ./test-lib.sh -test_expect_failure \ +test_expect_success \ 'clone of non-existent source should fail' \ - 'git-clone foo bar' + '! git-clone foo bar' -test_expect_failure \ +test_expect_success \ 'failed clone should not leave a directory' \ - 'cd bar' + '! test -d bar' # Need a repo to clone test_create_repo foo @@ -27,9 +27,9 @@ test_create_repo foo # source repository given to git-clone should be relative to the # current path not to the target dir -test_expect_failure \ +test_expect_success \ 'clone of non-existent (relative to $PWD) source should fail' \ - 'git-clone ../foo baz' + '! git-clone ../foo baz' test_expect_success \ 'clone should work now that source exists' \