t/t5505-remote: use test_path_is_missing

Replace instances of ! test -f with test_path_is_missing.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Ramkumar Ramachandra 2013-06-22 13:28:10 +05:30 committed by Junio C Hamano
parent 294547f564
commit fe3c1956e2
1 changed files with 2 additions and 2 deletions

View File

@ -747,7 +747,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/remotes' '
mkdir -p .git/remotes && mkdir -p .git/remotes &&
cat ../remotes_origin >.git/remotes/origin && cat ../remotes_origin >.git/remotes/origin &&
git remote rename origin origin && git remote rename origin origin &&
! test -f .git/remotes/origin && test_path_is_missing .git/remotes/origin &&
test "$(git config remote.origin.url)" = "$origin_url" && test "$(git config remote.origin.url)" = "$origin_url" &&
test "$(git config remote.origin.push)" = "refs/heads/master:refs/heads/upstream" && test "$(git config remote.origin.push)" = "refs/heads/master:refs/heads/upstream" &&
test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin"
@ -762,7 +762,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches' '
git remote rm origin && git remote rm origin &&
echo "$origin_url" >.git/branches/origin && echo "$origin_url" >.git/branches/origin &&
git remote rename origin origin && git remote rename origin origin &&
! test -f .git/branches/origin && test_path_is_missing .git/branches/origin &&
test "$(git config remote.origin.url)" = "$origin_url" && test "$(git config remote.origin.url)" = "$origin_url" &&
test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" && test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" &&
test "$(git config remote.origin.push)" = "HEAD:refs/heads/master" test "$(git config remote.origin.push)" = "HEAD:refs/heads/master"