]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/aggregate-results: fix paste(1) invocation
authorD. Ben Knoble <ben.knoble+github@gmail.com>
Mon, 24 Feb 2025 19:26:02 +0000 (14:26 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2025 20:24:16 +0000 (12:24 -0800)
When running `make test`, when missing prereqs the following is emitted:

    make aggregate-results
    usage: paste [-s] [-d delimiters] file ...
    fixed   1
    success 30066
    failed  0
    broken  218
    total   31274

POSIX says that `paste` requires a file operand; stdin was clearly
intended by 49da404070 (test-lib: show missing prereq summary,
2021-11-20). Use it.

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/aggregate-results.sh

index 6e3bcc4aec7cb922b9fc9ed4469c79b1699c76cc..6cb0ff11deba765398e8d3523cc5e4a41df5ee66 100755 (executable)
@@ -44,7 +44,7 @@ then
                tr -s "," "\n" |
                grep -v '^$' |
                sort -u |
-               paste -s -d ' ')
+               paste -s -d ' ' -)
        if test -n "$unique_missing_prereq"
        then
                printf "\nmissing prereq: $unique_missing_prereq\n\n"