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

Add ability to set current_dir - #33

Merged
bors[bot] merged 1 commit into
assert-rs:masterfrom
epage:current_dir
Sep 13, 2017
Merged

Add ability to set current_dir#33
bors[bot] merged 1 commit into
assert-rs:masterfrom
epage:current_dir

Conversation

@epage

@epageepage commented Sep 8, 2017

Copy link
Copy Markdown
Collaborator

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

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

@epage

epage commented Sep 8, 2017

Copy link
Copy Markdown
CollaboratorAuthor

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

cobalt-org/cobalt.rs@bd5d3b7

@killercup

killercup commented Sep 8, 2017 via email

Copy link
Copy Markdown
Collaborator

@killercup

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

borsBot 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

borsBot commented Sep 11, 2017

Copy link
Copy Markdown
Contributor

Timed out

@killercup

killercup commented Sep 11, 2017 via email

Copy link
Copy Markdown
Collaborator

@bors

borsBot commented Sep 11, 2017

Copy link
Copy Markdown
Contributor

Merge conflict (retrying...)

@killercup

Copy link
Copy Markdown
Collaborator

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

borsBot 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

borsBot commented Sep 11, 2017

Copy link
Copy Markdown
Contributor

Timed out

@notriddle

Copy link
Copy Markdown
Contributor

@notriddle

notriddle commented Sep 11, 2017

Copy link
Copy Markdown
Contributor

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

killercup commented Sep 11, 2017 via email

Copy link
Copy Markdown
Collaborator

@killercup

Copy link
Copy Markdown
Collaborator

Okay, let's give it another try!

bors r+

borsBot 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

borsBot commented Sep 13, 2017

Copy link
Copy Markdown
Contributor

Build succeeded

@bors
borsBot merged commit 3b937b3 into assert-rs:masterSep 13, 2017
@epage
epage deleted the current_dir branch September 13, 2017 17:30
@epageepage mentioned this pull request Sep 23, 2017
Sign up for freeto 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

@epage@killercup@notriddle