Skip to content

Commit 02c2c60

Browse files
committed
Merge branch 'jc/no-gitweb-test-without-cgi-etc' into maint
* jc/no-gitweb-test-without-cgi-etc: t/gitweb-lib.sh: skip gitweb tests when perl dependencies are not met
2 parents 1be9d84 + b7d8780 commit 02c2c60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/gitweb-lib.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,9 @@ perl -MEncode -e '$e="";decode_utf8($e, Encode::FB_CROAK)' >/dev/null 2>&1 || {
107107
test_done
108108
}
109109

110+
perl -MCGI -MCGI::Util -MCGI::Carp -e 0 >/dev/null 2>&1 || {
111+
skip_all='skipping gitweb tests, CGI module unusable'
112+
test_done
113+
}
114+
110115
gitweb_init

0 commit comments

Comments
 (0)