mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-22 01:12:24 +00:00
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:
parent
69c8480eb9
commit
3b22f44680
4 changed files with 23 additions and 10 deletions
20
.gitignore
vendored
20
.gitignore
vendored
|
@ -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
|
||||
|
|
1
Changes
1
Changes
|
@ -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)
|
||||
|
|
|
@ -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
6
t/bin/xterm
Executable 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
|
Loading…
Add table
Reference in a new issue