diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2013-10-06 21:50:46 +0100 |
---|---|---|
committer | Jonathan Nieder <jrnieder@gmail.com> | 2013-10-14 16:19:15 -0700 |
commit | 7202db86478390ead1b5ca6c6d47d44badff10f3 (patch) | |
tree | dd94075fd5debee88700bc19a11a68573cfe5b3d /check-racy.c | |
parent | 592ea4173af6b445042d74b989762fd41aecdf4c (diff) | |
download | git-rj/highlight-test-hang.tar.gz |
gitweb test: fix highlight test hang on Linux Mintrj/highlight-test-hang
Linux Mint has an implementation of the highlight command (unrelated
to the one from http://www.andre-simon.de) that works as a simple
filter. The script uses 'sed' to add terminal colour escape codes
around text matching a regular expression. When t9500-*.sh attempts
to run "highlight --version", the script simply hangs waiting for
input. (See https://bugs.launchpad.net/linuxmint/+bug/815005).
The tool required by gitweb can be installed from the 'highlight'
package. Unfortunately, given the default $PATH, this leads to the
tool having lower precedence than the script.
In order to avoid hanging the test, add '</dev/null' to the command
line of the highlight invocation. Also, since the 'highlight' tool
requred by gitweb produces '--version' output (and the script does
not), saving the command output allows a simple check for the wrong
'highlight'.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'check-racy.c')
0 files changed, 0 insertions, 0 deletions