Changeset 1308:58fdd9515f81 in nginx-tests


Ignore:
Timestamp:
03/26/18 11:27:57 (2 years ago)
Author:
Sergey Kandaurov <pluknet@…>
Branch:
default
Phase:
public
Message:

Tests: fixed printing try_run() diagnostics.

Previously, error log path could point to junk on unsuccessful regex match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Test/Nginx.pm

    r1302 r1308  
    292292
    293293        if ($ENV{TEST_NGINX_VERBOSE}) {
    294                 $self->{_configure_args} =~ m!--error-log-path=(\S+)!;
    295                 my $path = $1 || 'logs/error.log';
     294                my $path = $self->{_configure_args} =~ m!--error-log-path=(\S+)!
     295                        ? $1 : 'logs/error.log';
    296296                $path = "$self->{_testdir}/$path" if index($path, '/');
    297297
Note: See TracChangeset for help on using the changeset viewer.