Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Add ability to set current_dir #33

Merged
merged 1 commit into from
Sep 13, 2017
Merged

Add ability to set current_dir #33

merged 1 commit into from
Sep 13, 2017

Conversation

epage
Copy link
Collaborator

@epage epage commented Sep 8, 2017

Some tests need to run in certain directories but if you call std::env::set_current_dir within your test, you can hit race conditions with other tests running at the same time. This allows you to set the current_dir only on the child process.

@killercup
Copy link
Collaborator

Nice, thanks! Can you rebase this on master now that #24 has landed?

@epage
Copy link
Collaborator Author

epage commented Sep 8, 2017

btw this is how I resolved the unused_doc issues in another project

cobalt-org/cobalt.rs@bd5d3b7

@killercup
Copy link
Collaborator

killercup commented Sep 8, 2017 via email

@killercup
Copy link
Collaborator

Thanks for this whole batch of PRs! I'm at a conference currently, so I'm only now able to review it. Looks great, though!

bors r+

bors bot added a commit that referenced this pull request Sep 11, 2017
33: Add ability to set current_dir r=killercup a=epage

Some tests need to run in certain directories but if you call `std::env::set_current_dir` within your test, you can hit race conditions with other tests running at the same time.  This allows you to set the current_dir only on the child process.
@bors
Copy link
Contributor

bors bot commented Sep 11, 2017

Timed out

@killercup
Copy link
Collaborator

killercup commented Sep 11, 2017 via email

@bors
Copy link
Contributor

bors bot commented Sep 11, 2017

Merge conflict (retrying...)

@killercup
Copy link
Collaborator

Huh, not sure what's bothering bors here. Maybe #33 and #35 can't be merged together?

bors bot added a commit that referenced this pull request Sep 11, 2017
33: Add ability to set current_dir r=killercup a=epage

Some tests need to run in certain directories but if you call `std::env::set_current_dir` within your test, you can hit race conditions with other tests running at the same time.  This allows you to set the current_dir only on the child process.
@bors
Copy link
Contributor

bors bot commented Sep 11, 2017

Timed out

@notriddle
Copy link
Contributor

@notriddle
Copy link
Contributor

notriddle commented Sep 11, 2017

You should probably allow Travis to build the staging branch. The merge conflict, on the other hand, is because #33 and #35 can't be merged together.

@killercup
Copy link
Collaborator

killercup commented Sep 11, 2017 via email

@killercup
Copy link
Collaborator

Okay, let's give it another try!

bors r+

bors bot added a commit that referenced this pull request Sep 13, 2017
33: Add ability to set current_dir r=killercup a=epage

Some tests need to run in certain directories but if you call `std::env::set_current_dir` within your test, you can hit race conditions with other tests running at the same time.  This allows you to set the current_dir only on the child process.
@bors
Copy link
Contributor

bors bot commented Sep 13, 2017

Build succeeded

@bors bors bot merged commit 3b937b3 into assert-rs:master Sep 13, 2017
@epage epage deleted the current_dir branch September 13, 2017 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants