fix path for make test
This commit is contained in:
@@ -9,11 +9,10 @@ use FindBin qw( $Bin );
|
||||
my @phantomjs = Env::Path->PATH->Whence('phantomjs');
|
||||
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
|
||||
|
||||
if (! -x $phantomjs)
|
||||
{
|
||||
plan skip_all => "phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
||||
if ( !-x $phantomjs ) {
|
||||
plan skip_all =>
|
||||
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
||||
}
|
||||
else
|
||||
{
|
||||
exec ($phantomjs, 'run_qunit.js', 'sort-port.html');
|
||||
else {
|
||||
exec( $phantomjs, "$Bin/run_qunit.js", "$Bin/sort-port.html" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user