Skip to content

Commit 5a828bc

Browse files
Denton-Lgitster
authored andcommitted
t5550: simplify no matching line check
In the 'did not use upload-pack service' test, we have a complicated song-and-dance to ensure that there are no "/git-upload-pack" lines in "$HTTPD_ROOT_PATH/access.log". Simplify this by just checking that grep returns a non-zero exit code. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ef343f4 commit 5a828bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

t/t5550-http-fetch-dumb.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ test_expect_success 'fetch can handle previously-fetched .idx files' '
248248
'
249249

250250
test_expect_success 'did not use upload-pack service' '
251-
test_might_fail grep '/git-upload-pack' <"$HTTPD_ROOT_PATH"/access.log >act &&
252-
: >exp &&
253-
test_cmp exp act
251+
! grep "/git-upload-pack" "$HTTPD_ROOT_PATH/access.log"
254252
'
255253

256254
test_expect_success 'git client shows text/plain errors' '

0 commit comments

Comments
 (0)