Skip to content

Commit 6bd1c91

Browse files
committed
Merge branch 'ac/t5401-use-test-path-is-file' into next
Test clean-up. * ac/t5401-use-test-path-is-file: t5401: prefer test_path_is_* helper function
2 parents 5290fb6 + 318f4c9 commit 6bd1c91

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

t/t5401-update-hooks.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ test_expect_success 'updated as expected' '
6464
'
6565

6666
test_expect_success 'hooks ran' '
67-
test -f victim.git/pre-receive.args &&
68-
test -f victim.git/pre-receive.stdin &&
69-
test -f victim.git/update.args &&
70-
test -f victim.git/update.stdin &&
71-
test -f victim.git/post-receive.args &&
72-
test -f victim.git/post-receive.stdin &&
73-
test -f victim.git/post-update.args &&
74-
test -f victim.git/post-update.stdin
67+
test_path_is_file victim.git/pre-receive.args &&
68+
test_path_is_file victim.git/pre-receive.stdin &&
69+
test_path_is_file victim.git/update.args &&
70+
test_path_is_file victim.git/update.stdin &&
71+
test_path_is_file victim.git/post-receive.args &&
72+
test_path_is_file victim.git/post-receive.stdin &&
73+
test_path_is_file victim.git/post-update.args &&
74+
test_path_is_file victim.git/post-update.stdin
7575
'
7676

7777
test_expect_success 'pre-receive hook input' '

0 commit comments

Comments
 (0)