File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -100,29 +100,34 @@ gitweb_run () {
100100
101101. ./test-lib.sh
102102
103- if ! test_have_prereq PERL; then
103+ if ! test_have_prereq PERL
104+ then
104105 skip_all=' skipping gitweb tests, perl not available'
105106 test_done
106107fi
107108
108- if ! test_have_prereq GITWEB; then
109+ if ! test_have_prereq GITWEB
110+ then
109111 skip_all=' skipping gitweb tests, gitweb not available'
110112 test_done
111113fi
112114
113- perl -MEncode -e ' $e="";decode_utf8($e, Encode::FB_CROAK)' > /dev/null 2>&1 || {
115+ if ! perl -MEncode -e ' $e="";decode_utf8($e, Encode::FB_CROAK)' > /dev/null 2>&1
116+ then
114117 skip_all=' skipping gitweb tests, perl version is too old'
115118 test_done
116- }
119+ fi
117120
118- perl -MCGI -MCGI::Util -MCGI::Carp -e 0 > /dev/null 2>&1 || {
121+ if ! perl -MCGI -MCGI::Util -MCGI::Carp -e 0 > /dev/null
122+ then
119123 skip_all=' skipping gitweb tests, CGI & CGI::Util & CGI::Carp modules not available'
120124 test_done
121- }
125+ fi
122126
123- perl -mTime::HiRes -e 0 > /dev/null 2>&1 || {
127+ if ! perl -mTime::HiRes -e 0 > /dev/null 2>&1
128+ then
124129 skip_all=' skipping gitweb tests, Time::HiRes module not available'
125130 test_done
126- }
131+ fi
127132
128133gitweb_init
You can’t perform that action at this time.
0 commit comments