Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite767db2

Browse files
committed
Make command_like output more compact
Consistently print the test name, not the full command, which can bequite lenghty and include temporary directory names and otherdistracting details.Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parentc91b34b commite767db2

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)

[8]ページ先頭

©2009-2025 Movatter.jp