fix path for make test

This commit is contained in:
Eric A. Miller
2014-08-08 21:03:23 -04:00
parent b62f9eb214
commit 482ab5933a

View File

@@ -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" );
}