Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rj/highlight-test-hang'
author
Jonathan Nieder
<jrnieder@gmail.com>
Mon, 14 Oct 2013 23:19:31 +0000
(16:19 -0700)
committer
Jonathan Nieder
<jrnieder@gmail.com>
Mon, 14 Oct 2013 23:19:31 +0000
(16:19 -0700)
* rj/highlight-test-hang:
gitweb test: fix highlight test hang on Linux Mint
t/t9500-gitweb-standalone-no-errors.sh
patch
|
blob
|
history
raw
(from parent 1:
ec145c9
)
diff --git
a/t/t9500-gitweb-standalone-no-errors.sh
b/t/t9500-gitweb-standalone-no-errors.sh
index 6fca19353d7308f88e63806f7187d9d379412d18..718014d5dead8f36b2dde6ce38de63316ec57fdb 100755
(executable)
--- a/
t/t9500-gitweb-standalone-no-errors.sh
+++ b/
t/t9500-gitweb-standalone-no-errors.sh
@@
-683,9
+683,11
@@
test_expect_success \
# syntax highlighting
-highlight
--version >/dev/null 2>&1
+highlight
_version=$(highlight --version </dev/null 2>/dev/null)
if [ $? -eq 127 ]; then
- say "Skipping syntax highlighting test, because 'highlight' was not found"
+ say "Skipping syntax highlighting tests: 'highlight' not found"
+elif test -z "$highlight_version"; then
+ say "Skipping syntax highlighting tests: incorrect 'highlight' found"
else
test_set_prereq HIGHLIGHT
cat >>gitweb_config.perl <<-\EOF