Content-Length: 264173 | pFad | http://github.com/postgrespro/postgres/commit/e767db2242079b4ec2a7bbd18da7649d9ee1d696

10 Make command_like output more compact · postgrespro/postgres@e767db2 · GitHub
Skip to content

Commit e767db2

Browse files
committed
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>
1 parent c91b34b commit e767db2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/perl/TestLib.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ sub command_like
276276
my ($stdout, $stderr);
277277
print("# Running: " . join(" ", @{$cmd}) . "\n");
278278
my $result = IPC::Run::run $cmd, '>', \$stdout, '2>', \$stderr;
279-
ok($result, "@$cmd exit code 0");
280-
is($stderr, '', "@$cmd no stderr");
279+
ok($result, "$test_name: exit code 0");
280+
is($stderr, '', "$test_name: no stderr");
281281
like($stdout, $expected_stdout, "$test_name: matches");
282282
}
283283

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/e767db2242079b4ec2a7bbd18da7649d9ee1d696

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy