Skip to content

Commit

Permalink
Modify progress percent to cover the previous progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Jul 8, 2023
1 parent 2cc9e0b commit 743c9d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Test/Tasty/Ingredients/ConsoleReporter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ buildTestOutput opts tree =
| otherwise = do
let
msg = case (cleanupProgressText $ progressText progress, 100 * progressPercent progress) of
("", pct) -> printf "%.0f%%" pct
("", pct) -> printf "%.0f%% " pct
(txt, 0.0) -> printf "%s" txt
(txt, pct) -> printf "%s: %.0f%%" txt pct
(txt, pct) -> printf "%s: %.0f%% " txt pct
setCursorColumn resultPosition
infoOk msg
hFlush stdout
Expand Down

0 comments on commit 743c9d9

Please sign in to comment.