1
0
Эх сурвалжийг харах

Skip firefox binary startup tests when we have no display

This should fix TravisCI.
Daniel Gempesaw 10 жил өмнө
parent
commit
5b3db32f0f

+ 4 - 2
t/CanStartBinary.t

@@ -3,10 +3,10 @@
 use strict;
 use strict;
 use warnings;
 use warnings;
 use File::Which qw/which/;
 use File::Which qw/which/;
-use Selenium::Firefox::Binary;
 use Selenium::Chrome;
 use Selenium::Chrome;
-use Selenium::PhantomJS;
 use Selenium::Firefox;
 use Selenium::Firefox;
+use Selenium::Firefox::Binary;
+use Selenium::PhantomJS;
 use Test::More;
 use Test::More;
 
 
 unless ( $ENV{RELEASE_TESTING} ) {
 unless ( $ENV{RELEASE_TESTING} ) {
@@ -49,6 +49,8 @@ FIREFOX: {
     ok($command =~ /firefox -no-remote/, 'firefox command has proper args');
     ok($command =~ /firefox -no-remote/, 'firefox command has proper args');
 
 
   SKIP: {
   SKIP: {
+        skip 'Firefox will not start up without a display', 3
+          unless $ENV{DISPLAY};
         my $binary = Selenium::Firefox::Binary::firefox_path();
         my $binary = Selenium::Firefox::Binary::firefox_path();
         skip 'Firefox binary not found in path', 3
         skip 'Firefox binary not found in path', 3
           unless $binary;
           unless $binary;