]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0000-standard-git-push.sh
Merge branch 'jx/t5411-flake-fix'
[thirdparty/git.git] / t / t5411 / test-0000-standard-git-push.sh
index 2b04b4936743590796f687c893c70ce0253a6e08..47b058af7ede47e7c8c3bdc2a5238c24e9edbec4 100644 (file)
@@ -36,11 +36,10 @@ test_expect_success "git-push --atomic ($PROTOCOL)" '
                main \
                $B:refs/heads/next \
                >out 2>&1 &&
-       make_user_friendly_and_stable_output <out |
-               sed -n \
-                       -e "/^To / { s/   */ /g; p; }" \
-                       -e "/^ ! / { s/   */ /g; p; }" \
-                       >actual &&
+       filter_out_user_friendly_and_stable_output \
+               -e "/^To / { p; }" \
+               -e "/^ ! / { p; }" \
+               <out >actual &&
        cat >expect <<-EOF &&
        To <URL/of/upstream.git>
         ! [rejected] main -> main (non-fast-forward)