Skip to content

Commit

Permalink
Issue #87: remove the leading space before 'ok' and 'not ok'
Browse files Browse the repository at this point in the history
The leading space does not conform to TAP.
  • Loading branch information
bschmalhofer committed Jun 29, 2020
1 parent 068df7e commit 26da672
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Kernel/System/UnitTest/Driver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ sub _Print {
$Self->{TestCount}++;
if ($ResultOk) {
if ( $Self->{Verbose} ) {
print { $Self->{OriginalSTDOUT} } " "
. $Self->_Color( 'green', "ok" )
. " $Self->{TestCount} - $ShortMessage\n";
say { $Self->{OriginalSTDOUT} }
$Self->_Color( 'green', 'ok' ),
" $Self->{TestCount} - $ShortMessage";
}
else {
print { $Self->{OriginalSTDOUT} } $Self->_Color( 'green', "." );
Expand All @@ -567,9 +567,9 @@ sub _Print {
if ( !$Self->{Verbose} ) {
say { $Self->{OriginalSTDOUT} } "";
}
print { $Self->{OriginalSTDOUT} } " "
. $Self->_Color( 'red', "not ok" )
. " $Self->{TestCount} - $ShortMessage\n";
say { $Self->{OriginalSTDOUT} }
$Self->_Color( 'red', "not ok" ),
" $Self->{TestCount} - $ShortMessage";
$Self->{ResultData}->{TestNotOk}++;
$Self->{ResultData}->{Results}->{ $Self->{TestCount} }->{Status} = 'not ok';
$Self->{ResultData}->{Results}->{ $Self->{TestCount} }->{Message} = $Message;
Expand Down

0 comments on commit 26da672

Please sign in to comment.