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

do not get cwd if not env set #1379

Merged
merged 3 commits into from
May 27, 2018

Conversation

runcom
Copy link
Contributor

@runcom runcom commented Mar 17, 2018

Fix #897

/cc @lu-zero

Signed-off-by: Antonio Murdaca runcom@redhat.com

let non_existing_dir = config.homedir.join(".remove_me");
let mut cmd = clitools::cmd(config, "rustup", &["-h"]);
cmd.env_remove("CARGO_HOME");
cmd.current_dir(non_existing_dir);
Copy link
Contributor Author

@runcom runcom Mar 17, 2018

Choose a reason for hiding this comment

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

I'm trying to write a basic test here, but seems like cmd is checking the directory prior to executing the command and so failing with a no such file or directory. Any ideas on how to test this out?

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
@runcom runcom force-pushed the rustup-from-non-existing-path branch from 3df4596 to 3c7726c Compare March 18, 2018 11:15
@bors
Copy link
Contributor

bors commented Apr 13, 2018

☔ The latest upstream changes (presumably #1390) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented May 27, 2018

☔ The latest upstream changes (presumably #1395) made this pull request unmergeable. Please resolve the merge conflicts.

@Diggsey
Copy link
Contributor

Diggsey commented May 27, 2018

Thanks for the PR!

@Diggsey Diggsey merged commit 69d8691 into rust-lang:master May 27, 2018
@runcom runcom deleted the rustup-from-non-existing-path branch May 27, 2018 18:06
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.

None yet

3 participants