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>
Ramkumar Ramachandra committed
Jun 22, 2013 at 13:28 UTC
fe3c1956e2289f083cf6777b3ff22fe628c92951
1 file changed
+2
-2
t/t5505-remote.sh
+2
-2
@@ -747,7 +747,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/remotes' '
747
mkdir -p .git/remotes &&
748
cat ../remotes_origin >.git/remotes/origin &&
749
git remote rename origin origin &&
750
- ! test -f .git/remotes/origin &&
750
+ test_path_is_missing .git/remotes/origin &&
751
test "$(git config remote.origin.url)" = "$origin_url" &&
752
test "$(git config remote.origin.push)" = "refs/heads/master:refs/heads/upstream" &&
753
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' '
762
git remote rm origin &&
763
echo "$origin_url" >.git/branches/origin &&
764
git remote rename origin origin &&
765
- ! test -f .git/branches/origin &&
765
+ test_path_is_missing .git/branches/origin &&
766
test "$(git config remote.origin.url)" = "$origin_url" &&
767
test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" &&
768
test "$(git config remote.origin.push)" = "HEAD:refs/heads/master"