]> git.ipfire.org Git - thirdparty/git.git/commit
tests: don't lose exit status with "test <op> $(git ...)"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 6 Feb 2023 22:44:31 +0000 (23:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Feb 2023 23:30:42 +0000 (15:30 -0800)
commit4bd0785dc2eb7b3f23d25c8013337cc51ab1065d
tree212e0867573fcb4b7db80ebb649a046a9b80fab8
parentc7e03b4e39d40b431764797d3a792169cd375705
tests: don't lose exit status with "test <op> $(git ...)"

As with the preceding commit, rewrite tests that ran "git" inside
command substitution and lost the exit status of "git" so that we
notice the failing "git". This time around we're converting cases that
didn't involve a containing sub-shell around the command substitution.

In the case of "t0060-path-utils.sh" and
"t2005-checkout-index-symlinks.sh" convert the relevant code to using
the modern style of indentation and newline wrapping while having to
change it.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-submodule-update.sh
t/t0001-init.sh
t/t0002-gitfile.sh
t/t0060-path-utils.sh
t/t0100-previous.sh
t/t1504-ceiling-dirs.sh
t/t2005-checkout-index-symlinks.sh
t/t5522-pull-symlink.sh
t/t7402-submodule-rebase.sh
t/t7504-commit-msg-hook.sh
t/t7810-grep.sh