Skip to content

Extract Log_trap abstraction and cleanup log handling#302

Merged
craigfe merged 5 commits into
mirage:masterfrom
craigfe:refactor-log-capturing
May 4, 2021
Merged

Extract Log_trap abstraction and cleanup log handling#302
craigfe merged 5 commits into
mirage:masterfrom
craigfe:refactor-log-capturing

Conversation

@craigfe

@craigfe craigfe commented May 3, 2021

Copy link
Copy Markdown
Member

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

@Ngoguey42 Ngoguey42 left a comment

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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
Copy Markdown
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