Skip to content

Commit a43948b

Browse files
committed
Merge branch 'rj/highlight-test-hang'
* rj/highlight-test-hang: gitweb test: fix highlight test hang on Linux Mint
2 parents ec145c9 + 7202db8 commit a43948b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t9500-gitweb-standalone-no-errors.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,11 @@ test_expect_success \
683683
# syntax highlighting
684684

685685

686-
highlight --version >/dev/null 2>&1
686+
highlight_version=$(highlight --version </dev/null 2>/dev/null)
687687
if [ $? -eq 127 ]; then
688-
say "Skipping syntax highlighting test, because 'highlight' was not found"
688+
say "Skipping syntax highlighting tests: 'highlight' not found"
689+
elif test -z "$highlight_version"; then
690+
say "Skipping syntax highlighting tests: incorrect 'highlight' found"
689691
else
690692
test_set_prereq HIGHLIGHT
691693
cat >>gitweb_config.perl <<-\EOF

0 commit comments

Comments
 (0)