Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit bed2f08

Browse files
authored
Merge pull request #7023 from montegoulding/lessverbosetests
[[ Tests ]] Make verbose mode less verbose
2 parents 492133e + 1c8a1ea commit bed2f08

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/_testrunnerbehavior.livecodescript

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ private command doRun pInfo
139139
put tLogForWriting into url ("binfile:" & tLogFilename)
140140

141141
if TesterTapGetWorstResult(tAnalysis) is "FAIL" then
142-
if $V is not empty then
143-
write tLogForWriting to stdout
144-
end if
145142
quit 1
146143
end if
147144
end doRun
@@ -325,5 +322,15 @@ command TestRunnerProcessOutput pScriptfile, pCommand, pOutput
325322

326323
TesterLogSummaryLine tTapResults, (TesterGetPrettyTestName(pScriptFile) & ":" && pCommand)
327324

325+
if TesterTapGetWorstResult(tTapResults) is "FAIL" then
326+
if $V is not empty then
327+
put textEncode(pOutput, "utf8") into pOutput
328+
if the platform is "win32" then
329+
replace return with numToChar(13) & numToChar(10) in pOutput
330+
end if
331+
write pOutput to stderr
332+
end if
333+
end if
334+
328335
return tTapResults
329336
end TestRunnerProcessOutput

0 commit comments

Comments
 (0)