mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
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>
This commit is contained in:
@ -276,8 +276,8 @@ sub command_like
|
|||||||
my ($stdout, $stderr);
|
my ($stdout, $stderr);
|
||||||
print("# Running: " . join(" ", @{$cmd}) . "\n");
|
print("# Running: " . join(" ", @{$cmd}) . "\n");
|
||||||
my $result = IPC::Run::run $cmd, '>', \$stdout, '2>', \$stderr;
|
my $result = IPC::Run::run $cmd, '>', \$stdout, '2>', \$stderr;
|
||||||
ok($result, "@$cmd exit code 0");
|
ok($result, "$test_name: exit code 0");
|
||||||
is($stderr, '', "@$cmd no stderr");
|
is($stderr, '', "$test_name: no stderr");
|
||||||
like($stdout, $expected_stdout, "$test_name: matches");
|
like($stdout, $expected_stdout, "$test_name: matches");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user