diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:52 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:52 -0800 |
| commit | 3f3fd0f34617bc9901d5cfaca9a5b5a12eec8cf4 (patch) | |
| tree | cac3cc87c7bdabb790528eef4ac6d9bedd33e4cf | |
| parent | 9865ef24578c750625054e2f382b9c764befe870 (diff) | |
| parent | 318f4c98276de7e515f838a9626bcf60d757ee20 (diff) | |
Merge branch 'ac/t5401-use-test-path-is-file'
Test clean-up.
* ac/t5401-use-test-path-is-file:
t5401: prefer test_path_is_* helper function
| -rwxr-xr-x | t/t5401-update-hooks.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/t/t5401-update-hooks.sh b/t/t5401-update-hooks.sh index 723d1e17ec..17a46fd3ba 100755 --- a/t/t5401-update-hooks.sh +++ b/t/t5401-update-hooks.sh @@ -64,14 +64,14 @@ test_expect_success 'updated as expected' ' ' test_expect_success 'hooks ran' ' - test -f victim.git/pre-receive.args && - test -f victim.git/pre-receive.stdin && - test -f victim.git/update.args && - test -f victim.git/update.stdin && - test -f victim.git/post-receive.args && - test -f victim.git/post-receive.stdin && - test -f victim.git/post-update.args && - test -f victim.git/post-update.stdin + test_path_is_file victim.git/pre-receive.args && + test_path_is_file victim.git/pre-receive.stdin && + test_path_is_file victim.git/update.args && + test_path_is_file victim.git/update.stdin && + test_path_is_file victim.git/post-receive.args && + test_path_is_file victim.git/post-receive.stdin && + test_path_is_file victim.git/post-update.args && + test_path_is_file victim.git/post-update.stdin ' test_expect_success 'pre-receive hook input' ' |
