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 = Env::Path->PATH->Whence('phantomjs');
|
||||||
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
|
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
|
||||||
|
|
||||||
if (! -x $phantomjs)
|
if ( !-x $phantomjs ) {
|
||||||
{
|
plan skip_all =>
|
||||||
plan skip_all => "phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
exec( $phantomjs, "$Bin/run_qunit.js", "$Bin/sort-port.html" );
|
||||||
exec ($phantomjs, 'run_qunit.js', 'sort-port.html');
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user