Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the output of Dune deterministic in tests #855

Merged
1 commit merged into from Jun 6, 2018
Merged

Make the output of Dune deterministic in tests #855

1 commit merged into from Jun 6, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jun 5, 2018

When the root is not the cwd, print a relative path for the Entering ... line rather than an absolute one. This way we no longer need the 2>&1 | grep -v Entering.

@ghost ghost requested a review from rgrinberg June 5, 2018 17:39
else
loop (Filename.concat acc "..") (Filename.dirname dir)
in
loop ".." (Filename.dirname s)
Copy link
Member

Choose a reason for hiding this comment

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

Why can't we just use Path.descendant here? I'm a bit worried that that we're hitting that annoying infinite loop case again if dir ends up being an absolute path.

Copy link
Author

Choose a reason for hiding this comment

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

Currently Path.descendant doesn't work for absolute paths. Here the two paths come from Sys.getcwd, so I assumed they'd be normalized.

When the root is not the cwd, print a relative path for the "Entering
..." line rather than an absolute one.

Signed-off-by: Jeremie Dimino <jdimino@janestreet.com>
@ghost ghost merged commit bb7827a into ocaml:master Jun 6, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant