hook tests: turn exit code assertions into a loop
commit62e2486b614917e4ba578b0758fd126ce107663c
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 17 Mar 2022 10:13:07 +0000 (17 11:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Mar 2022 15:40:26 +0000 (17 08:40 -0700)
tree6b3e35a571b0117f998eafd37d85df06c4778226
parent7da7f63cf9950d0ecd83579b4ca28f7b2805bf32
hook tests: turn exit code assertions into a loop

Amend a test added in 96e7225b310 (hook: add 'run' subcommand,
2021-12-22) to use a for-loop instead of a copy/pasting the same test
for the four exit codes we test.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1800-hook.sh