]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0041-process-all-refs--porcelain.sh
t5411: refactor check of refs using test_cmp_refs
[thirdparty/git.git] / t / t5411 / test-0041-process-all-refs--porcelain.sh
index e21420b60dd823a589c06e1885ea2276fbed573f..73b35fe0aa5dbdc42b1ddb479c1eb3614c2d496b 100644 (file)
@@ -93,14 +93,12 @@ test_expect_success "proc-receive: process all refs ($PROTOCOL/porcelain)" '
        Done
        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/bar
        <COMMIT-A> refs/heads/baz
        <COMMIT-A> refs/heads/main
        EOF
-       test_cmp expect actual
 '
 
 # Refs of upstream : main(A)             bar(A)  baz(B)