projects
/
users
/
heikki
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
| inline |
side by side
(parent:
c91b34b
)
Make command_like output more compact
author
Peter Eisentraut
<
[email protected]
>
Tue, 26 Jul 2016 15:39:43 +0000
(11:39 -0400)
committer
Peter Eisentraut
<
[email protected]
>
Wed, 21 Sep 2016 16:00:00 +0000
(12:00 -0400)
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]
>
src/test/perl/TestLib.pm
|
blob
|
blame
|
history
diff --git
a/src/test/perl/TestLib.pm
b/src/test/perl/TestLib.pm
index 649fd821733f13a7e8d450a89d545b4d09047759..c7b3262087d995ed5bd0051ccc700002cc659201 100644
(file)
--- 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");
}