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>
This commit is contained in:
parent
c91b34bab1
commit
e767db2242
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue