Merge branch 'ab/keep-git-exit-codes-in-tests'
commitea05fd5fbf7c28200de22cf06efee3a987dc1244
authorJunio C Hamano <gitster@pobox.com>
Thu, 17 Mar 2022 00:53:09 +0000 (16 17:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Mar 2022 00:53:09 +0000 (16 17:53 -0700)
tree17e40fd7de2ebd46e7c9637950a0317bae0bd32c
parent0b01c0a814e9646dd646c8f387d6c9bfdc5baa97
parenta6ecc256c34c42a8b9f1790d9bfb5ea8f6309022
Merge branch 'ab/keep-git-exit-codes-in-tests'

Updates tests around the use of "test $(git cmd) = constant".

* ab/keep-git-exit-codes-in-tests:
  rev-list simplify tests: don't ignore "git" exit code
  checkout tests: don't ignore "git <cmd>" exit code
  apply tests: don't ignore "git ls-files" exit code, drop sub-shell
  gettext tests: don't ignore "test-tool regex" exit code
  rev-list tests: don't hide abort() in "test_expect_failure"
  diff tests: don't ignore "git rev-list" exit code
  notes tests: don't ignore "git" exit code
  rev-parse tests: don't ignore "git reflog" exit code
  merge tests: use "test_must_fail" instead of ad-hoc pattern
  apply tests: use "test_must_fail" instead of ad-hoc pattern
  diff tests: don't ignore "git diff" exit code in "read" loop
  diff tests: don't ignore "git diff" exit code
  read-tree tests: check "diff-files" exit code on failure
  tests: use "test_stdout_line_count", not "test $(git [...] | wc -l)"
  tests: change some 'test $(git) = "x"' to test_cmp