summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2016-07-26 15:39:43 +0000
committerPeter Eisentraut2016-09-21 16:00:00 +0000
commite767db2242079b4ec2a7bbd18da7649d9ee1d696 (patch)
treee6f0b47b859fcfc39a6f365010fd1e8a028904ab
parentc91b34bab19bdc4fca4de37cd37c8a4e79dae4d0 (diff)
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 <[email protected]>
-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 649fd82173..c7b3262087 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");
}