]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0022-report-unexpect-ref.sh
t5411: refactor check of refs using test_cmp_refs
[thirdparty/git.git] / t / t5411 / test-0022-report-unexpect-ref.sh
index b0c5a6e168f0422111b5be63123b291e941d96b3..dbed467186a6cf8fae9b9dc66fe227cd25ff10a9 100644 (file)
@@ -30,12 +30,10 @@ test_expect_success "proc-receive: report unexpected ref ($PROTOCOL)" '
         ! [remote rejected] HEAD -> refs/for/main/topic (proc-receive failed to report status)
        EOF
        test_cmp expect actual &&
-       git -C "$upstream" show-ref >out &&
-       make_user_friendly_and_stable_output <out >actual &&
-       cat >expect <<-EOF &&
+
+       test_cmp_refs -C "$upstream" <<-EOF
        <COMMIT-B> refs/heads/main
        EOF
-       test_cmp expect actual
 '
 
 # Refs of upstream : main(B)