diff options
author | Jeff King <peff@peff.net> | 2023-01-12 19:39:36 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-13 22:48:24 +0300 |
commit | fca2d86c97838920a42e192c5a1738874e492613 (patch) | |
tree | aaa4f36403ba0f619ddaad1d302e782e24d9721f /t/interop | |
parent | c48035d29b4e524aed3a32f0403676f0d9128863 (diff) |
t/interop: report which vanilla git command failed
The interop test library sets up wrappers "git.a" and "git.b" to
represent the two versions to be tested. It also wraps vanilla "git" to
report an error, with the goal of catching tests which accidentally fail
to use one of the version-specific wrappers (which could invalidate the
tests in a very subtle way).
But when it catches an invocation of vanilla git, it doesn't give any
details, which makes it very hard to debug exactly which invocation is
responsible (especially if it's buried in a function invocation, etc).
Let's report the arguments passed to git, which helps narrow it down.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/interop')
-rw-r--r-- | t/interop/interop-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/interop/interop-lib.sh b/t/interop/interop-lib.sh index 3e0a2911d4..62f4481b6e 100644 --- a/t/interop/interop-lib.sh +++ b/t/interop/interop-lib.sh @@ -68,7 +68,7 @@ generate_wrappers () { wrap_git .bin/git.a "$DIR_A" && wrap_git .bin/git.b "$DIR_B" && write_script .bin/git <<-\EOF && - echo >&2 fatal: test tried to run generic git + echo >&2 fatal: test tried to run generic git: $* exit 1 EOF PATH=$(pwd)/.bin:$PATH |