From 482ab5933acf7fcac750c314c0eb3cbe548bd198 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Fri, 8 Aug 2014 21:03:23 -0400 Subject: [PATCH] fix path for make test --- Netdisco/t/11-sort_port.t | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Netdisco/t/11-sort_port.t b/Netdisco/t/11-sort_port.t index cdb1abe7..44689bbb 100755 --- a/Netdisco/t/11-sort_port.t +++ b/Netdisco/t/11-sort_port.t @@ -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" ); }