]> git.ipfire.org Git - thirdparty/git.git/commit
tests: don't lose misc "git" exit codes
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 6 Feb 2023 22:44:33 +0000 (23:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Feb 2023 23:30:42 +0000 (15:30 -0800)
commit9fdc79ecba0f4a3ef885f1409d2db5a1dbabd649
tree20e4441cb3fecb298f8e6ee407b6c0641a41eb39
parent4bd0785dc2eb7b3f23d25c8013337cc51ab1065d
tests: don't lose misc "git" exit codes

Fix a few miscellaneous cases where:

- We lost the "git" exit code via "git ... | grep"
- Likewise by having a $(git) argument to git itself
- Used "test -z" to check that a command emitted no output, we can use
  "test_must_be_empty" and &&-chaining instead.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1401-symbolic-ref.sh
t/t3701-add-interactive.sh
t/t7516-commit-races.sh