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

Fix environment handling #442

Merged
merged 5 commits into from
Jul 12, 2017
Merged

Fix environment handling #442

merged 5 commits into from
Jul 12, 2017

Conversation

mvz
Copy link
Contributor

@mvz mvz commented Jun 30, 2017

Summary

Improve handling of environment. In particular, makes ENV['HOME'] have a correct and safe value.

This PR depends on #441 so needs to be rebased after that PR has been merged.

Motivation and Details

The main purpose is to make all the current specs pass. It does this by changing the environment setup in the specs, so that:

  • HOME and PATH are set early enough so that all specs run with the set values. This also ensures no leaking of files outside of the build directory.
  • Where the Aruba runtime is the object under test, it uses the test object when expanding paths.

This change also fixes the #cd method to not clear the entire environment inside the block.

After this PR has been merged we can revisit #434 and concentrate on the cucumber scenarios there.

@mvz mvz changed the title WIP: Fix environment handling Fix environment handling Jul 6, 2017
@mvz mvz mentioned this pull request Jul 6, 2017
@maxmeyer
Copy link
Member

@mvz I forgot why I implemented it with Aruba.platforms.with_environment. At that time I tried to upgrade cucumber and/or rspec to use the new version of aruba. But anyway I would like to see, where this leads to. At least if fixes a few things, and if something is broken afterwards we can fix it.

@maxmeyer maxmeyer merged commit 3795d25 into cucumber:master Jul 12, 2017
@mvz
Copy link
Contributor Author

mvz commented Jul 13, 2017

🎉

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.

2 participants