Skip to content

Commit

Permalink
Flush stdout/stderr to not interleave error and latex output
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Feb 5, 2025
1 parent c5fbc27 commit cf56e84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bittide-tools/clockcontrol/plot/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ import System.IO (
hPutStr,
hSetBuffering,
openFile,
stderr,
stdout,
withFile,
)
import Text.Read (readMaybe)
Expand Down Expand Up @@ -674,6 +676,8 @@ plotTest refDom testDir cfg dir globalOutDir = do
-- Fail if clocks did not start at their set offsets. We purposely fail
-- after generating the report, because the report generation is very
-- useful for debugging.
hFlush stdout
hFlush stderr
maybe (return ()) die maybeError
_ -> die "Empty topology"
_ -> die "Topology is larger than expected"
Expand Down

0 comments on commit cf56e84

Please sign in to comment.