]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ab/hook-tests-updates'
authorJunio C Hamano <gitster@pobox.com>
Thu, 31 Mar 2022 01:01:11 +0000 (18:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Mar 2022 01:01:11 +0000 (18:01 -0700)
commita5bf611cc4f14f062cd74965deafe617048bff05
tree47dd4d166bf8dc324a619d591ad03b918a93211a
parent2ea7e40c53512c410cfc769f6817d31c3bec9941
parentf6db603c7a051d9d0d1ce135673ce77a5b8b7a4c
Merge branch 'ab/hook-tests-updates'

Update tests around the use of hook scripts.

* ab/hook-tests-updates:
  http tests: use "test_hook" for "smart" and "dumb" http tests
  proc-receive hook tests: use "test_hook" instead of "write_script"
  tests: extend "test_hook" for "rm" and "chmod -x", convert "$HOOK"
  tests: use "test_hook" for misc "mkdir -p" and "chmod" cases
  tests: change "mkdir -p && write_script" to use "test_hook"
  tests: change "cat && chmod +x" to use "test_hook"
  gc + p4 tests: use "test_hook", remove sub-shells
  fetch+push tests: use "test_hook" and "test_when_finished" pattern
  bugreport tests: tighten up "git bugreport -s hooks" test
  tests: assume the hooks are disabled by default
  http tests: don't rely on "hook/post-update.sample"
  hook tests: turn exit code assertions into a loop
  test-lib-functions: add and use a "test_hook" wrapper