Skip to content

Conversation

craigfe
Copy link
Member

@craigfe craigfe commented May 3, 2021

Pulls out a Log_trap component for capturing test logs in files.

This is another chunk of refactoring extracted from #294, which requires some more complicated redirection logic.

@craigfe craigfe force-pushed the refactor-log-capturing branch from 6612916 to e1a05c3 Compare May 3, 2021 23:32
craigfe added 3 commits May 4, 2021 00:38
It's relatively common to use `__FILE__` as a test name, in which case
it's helpful for these characters to be escaped less noisily.
@craigfe craigfe force-pushed the refactor-log-capturing branch from e1a05c3 to b30882a Compare May 3, 2021 23:38
Copy link

@Ngoguey42 Ngoguey42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +3 to +5
module Fun = struct
let id x = x
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with the one from Stdlib? :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't exist pre-4.08, sadly.

@craigfe craigfe merged commit ad5f8d8 into mirage:master May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants