diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-03-17 11:13:17 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-17 14:42:14 -0700 |
commit | c39176b1601a2005222c797912281a5a2dad8dcc (patch) | |
tree | 89c3af9a50bfff768669dc6850686da9b780eccc /t/t5411/test-0023-report-unexpect-ref--porcelain.sh | |
parent | tests: extend "test_hook" for "rm" and "chmod -x", convert "$HOOK" (diff) | |
download | tgif-c39176b1601a2005222c797912281a5a2dad8dcc.tar.xz |
proc-receive hook tests: use "test_hook" instead of "write_script"
Change the t5411/*.sh tests to use the test_hook helper instead of
"write_script". Unfortunately these tests do the setup and test across
different test_expect_success blocks, so we have to use
--clobber (implying --setup) for these.
Let's change those that can use a quoted here-doc to do so while we're
at it.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5411/test-0023-report-unexpect-ref--porcelain.sh')
-rw-r--r-- | t/t5411/test-0023-report-unexpect-ref--porcelain.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5411/test-0023-report-unexpect-ref--porcelain.sh b/t/t5411/test-0023-report-unexpect-ref--porcelain.sh index 63c479e975..6d116ef692 100644 --- a/t/t5411/test-0023-report-unexpect-ref--porcelain.sh +++ b/t/t5411/test-0023-report-unexpect-ref--porcelain.sh @@ -1,5 +1,5 @@ test_expect_success "setup proc-receive hook (unexpected ref, $PROTOCOL/porcelain)" ' - write_script "$upstream/hooks/proc-receive" <<-EOF + test_hook -C "$upstream" --clobber proc-receive <<-\EOF printf >&2 "# proc-receive hook\n" test-tool proc-receive -v \ -r "ok refs/heads/main" |