Tests: fixed printing try_run() diagnostics.
Previously, error log path could point to junk on unsuccessful regex match.
diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm
index b4472b9..eb5d40b 100644
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -291,8 +291,8 @@
return $self unless $@;
if ($ENV{TEST_NGINX_VERBOSE}) {
- $self->{_configure_args} =~ m!--error-log-path=(\S+)!;
- my $path = $1 || 'logs/error.log';
+ my $path = $self->{_configure_args} =~ m!--error-log-path=(\S+)!
+ ? $1 : 'logs/error.log';
$path = "$self->{_testdir}/$path" if index($path, '/');
open F, '<', $path or die "Can't open $path: $!";