Fix tests on Travis CI via Github

The Travis CI test systems do not have xterm installed; in the specific test that needs it, add in a path to a 'fake' xterm to allow it to be found
This commit is contained in:
Duncan Ferguson 2016-03-26 08:18:48 +00:00
parent 69c8480eb9
commit 3b22f44680
4 changed files with 23 additions and 10 deletions

20
.gitignore vendored
View file

@ -1,13 +1,13 @@
bin
blib/
_build/
Build
cover_db/
Makefile
MANIFEST.bak
MYMETA.json
MYMETA.yml
pm_to_blib
/bin
/blib/
/_build/
/Build
/cover_db/
/Makefile
/MANIFEST.bak
/MYMETA.json
/MYMETA.yml
/pm_to_blib
*.swp
*.bak
*.tar.gz

View file

@ -2,6 +2,7 @@
- Failure to find the terminal binary should not be fatal
- Fix processing of '--extra_tag_file' and its configuration item (Github issue #51)
- Add bash shell expansion on host names containing a '{' character (Github issue #53)
- Fix tests when running on a server without xterm installed (such as Travis CI via GitHub)
4.05 2015-11-28 Duncan Ferguson <duncan_ferguson@user.sf.net>
- Change default key_quit from 'Control-q' to 'Alt-q' (Github issue #50)

View file

@ -9,6 +9,12 @@ setlocale( LC_ALL, "C" );
use FindBin qw($Bin $Script);
use lib "$Bin/../lib";
# fix path for finding our fake xterm on headless systems that do
# not have it installed, such as TravisCI via github
BEGIN {
$ENV{PATH} = $ENV{PATH} . ':' . $Bin . '/bin';
}
use Test::More;
use Test::Trap;
use File::Which qw(which);

6
t/bin/xterm Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# small 'fake' script to allow xterm to be found when performing tests
# on systems that do not have it
exit 0