diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2018-08-19 21:57:24 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-21 18:48:34 (GMT) |
commit | ec21ac8c189537df815e49bdf8f08da927665cf2 (patch) | |
tree | 36c09e7ca122410c6418b5b58ded1e330460280b /t/t5509-fetch-push-namespaces.sh | |
parent | f0dc593a95877298ba6fa9d29e5c779832ad5894 (diff) | |
download | git-ec21ac8c189537df815e49bdf8f08da927665cf2.zip git-ec21ac8c189537df815e49bdf8f08da927665cf2.tar.gz git-ec21ac8c189537df815e49bdf8f08da927665cf2.tar.bz2 |
tests: use 'test_must_be_empty' instead of 'test_cmp /dev/null <out>'
Using 'test_must_be_empty' is more idiomatic than 'test_cmp /dev/null
out', and its message on error is perhaps a bit more to the point.
This patch was basically created by running:
sed -i -e 's%test_cmp /dev/null%test_must_be_empty%' t[0-9]*.sh
with the exception of the change in 'should not fail in an empty repo'
in 't7401-submodule-summary.sh', where it was 'test_cmp output
/dev/null'.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5509-fetch-push-namespaces.sh')
-rwxr-xr-x | t/t5509-fetch-push-namespaces.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5509-fetch-push-namespaces.sh b/t/t5509-fetch-push-namespaces.sh index 75c570a..c88df78 100755 --- a/t/t5509-fetch-push-namespaces.sh +++ b/t/t5509-fetch-push-namespaces.sh @@ -44,7 +44,7 @@ test_expect_success 'pushing into a repository using a ref namespace' ' test_cmp expected actual && # Try a namespace with no content git ls-remote "ext::git --namespace=garbage %s ../pushee" >actual && - test_cmp /dev/null actual && + test_must_be_empty actual && git ls-remote pushee-unnamespaced >actual && sed -e "s|refs/|refs/namespaces/namespace/refs/|" expected >expected.unnamespaced && test_cmp expected.unnamespaced actual |