postgres.git / summary / log / commit / refs

commit    e767db2242079b4ec2a7bbd18da7649d9ee1d696
Author:   Peter Eisentraut <peter_e@gmx.net>
Date:     Tue Jul 26 15:39:43 2016 +0000
First released in: 10.0

    Make command_like output more compact
    
    Consistently print the test name, not the full command, which can be
    quite lenghty and include temporary directory names and other
    distracting details.
    
    Reviewed-by: Michael Paquier <michael.paquier@gmail.com>


src/test/perl/TestLib.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index 649fd821733..c7b3262087d 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -276,8 +276,8 @@ sub command_like my ($stdout, $stderr); print("# Running: " . join(" ", @{$cmd}) . "\n"); my $result = IPC::Run::run $cmd, '>', \$stdout, '2>', \$stderr; - ok($result, "@$cmd exit code 0"); - is($stderr, '', "@$cmd no stderr"); + ok($result, "$test_name: exit code 0"); + is($stderr, '', "$test_name: no stderr"); like($stdout, $expected_stdout, "$test_name: matches"); } [parent: c91b34bab19b]