diff --git a/tests/LightyTest.pm b/tests/LightyTest.pm index da65bec7..d8850a37 100644 --- a/tests/LightyTest.pm +++ b/tests/LightyTest.pm @@ -17,6 +17,7 @@ sub find_program { $location = $ENV{$envname}; } else { $location = `which "$program" 2>/dev/null`; + chomp $location; if (! -x $location) { for my $path (@DEFAULT_PATHS) { $location = $path . $program;