summaryrefslogtreecommitdiff
path: root/t/t5505-remote.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-20 11:33:48 -0700
committerJunio C Hamano <gitster@pobox.com>2018-08-20 11:33:48 -0700
commit14677d25ab50efcf57621ae69d6ba858a5f86165 (patch)
treec480f4a1ac902ab01d430b00e3dfbd2093b30d7a /t/t5505-remote.sh
parent34f229790dcc7c7dc61bc37532f88fca39e36de2 (diff)
parentd3c6751b18170276f80e3578d16877d43ad22709 (diff)
downloadgit-14677d25ab50efcf57621ae69d6ba858a5f86165.tar.gz
Merge branch 'ab/test-must-be-empty-for-master'
Test updates. * ab/test-must-be-empty-for-master: tests: make use of the test_must_be_empty function
Diffstat (limited to 't/t5505-remote.sh')
-rwxr-xr-xt/t5505-remote.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index a6856e052b..241e6a319d 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -74,8 +74,7 @@ test_expect_success 'add another remote' '
git for-each-ref "--format=%(refname)" refs/remotes |
sed -e "/^refs\/remotes\/origin\//d" \
-e "/^refs\/remotes\/second\//d" >actual &&
- >expect &&
- test_cmp expect actual
+ test_must_be_empty actual
)
'
@@ -112,8 +111,7 @@ test_expect_success C_LOCALE_OUTPUT 'remove remote' '
check_remote_track origin master side &&
git for-each-ref "--format=%(refname)" refs/remotes |
sed -e "/^refs\/remotes\/origin\//d" >actual &&
- >expect &&
- test_cmp expect actual
+ test_must_be_empty actual
)
'