aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2016-07-26 11:39:43 -0400
committerPeter Eisentraut <peter_e@gmx.net>2016-09-21 12:00:00 -0400
commite767db2242079b4ec2a7bbd18da7649d9ee1d696 (patch)
treee6f0b47b859fcfc39a6f365010fd1e8a028904ab
parentc91b34bab19bdc4fca4de37cd37c8a4e79dae4d0 (diff)
downloadpostgresql-e767db2242079b4ec2a7bbd18da7649d9ee1d696.tar.gz
postgresql-e767db2242079b4ec2a7bbd18da7649d9ee1d696.zip
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>
-rw-r--r--src/test/perl/TestLib.pm4
1 files 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");
}