]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci: remove the pipe after "p4 -V" to catch errors
authorJiang Xin <zhiyou.jx@alibaba-inc.com>
Fri, 25 Nov 2022 09:59:52 +0000 (17:59 +0800)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 12 Mar 2023 19:31:53 +0000 (20:31 +0100)
When installing p4 as a dependency, we used to pipe output of "p4 -V"
and "p4d -V" to validate the installation and output a condensed version
information. But this would hide potential errors of p4 and would stop
with an empty output. E.g.: p4d version 16.2 running on ubuntu 22.04
causes sigfaults, even before it produces any output.

By removing the pipe after "p4 -V" and "p4d -V", we may get a
verbose output, and stop immediately on errors because we have "set
-e" in "ci/lib.sh". Since we won't look at these trace logs unless
something fails, just including the raw output seems most sensible.

Reviewed-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/install-dependencies.sh

index 0b1184e04adedb1eba415a401c93331cdc139d6a..309b8b164e2ba7b89c61c30eae089538f2235933 100755 (executable)
@@ -81,9 +81,9 @@ esac
 if type p4d >/dev/null && type p4 >/dev/null
 then
        echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)"
-       p4d -V | grep Rev.
+       p4d -V
        echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)"
-       p4 -V | grep Rev.
+       p4 -V
 fi
 if type git-lfs >/dev/null
 then