Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix issues with no ethereum test dir present (2382) #2659

Merged
merged 1 commit into from
Oct 18, 2016
Merged

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Oct 17, 2016

fixes #2382

@NikVolf NikVolf added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Oct 17, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1cb0e26 on fix-2382 into * on master*.

let geth_path = path::ethereum::default();
::std::fs::create_dir_all(geth_path.as_path()).unwrap_or_else(
|e| warn!("Failed to create '{}' for geth mode: {}", &geth_path.to_str().unwrap(), e));
if self.args.flag_geth && !cfg!(windows) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's wrong with Windows?

Copy link
Contributor Author

@NikVolf NikVolf Oct 17, 2016

Choose a reason for hiding this comment

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

no need to create directory for windows pipe, it is in no way related to the file system (unlike unix sockets)

and afaik we don't implicitly use geth dir for anything but ipc now

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, it's probably used in geth imports, but I think it handles missing directories correctly.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 18, 2016
@gavofyork gavofyork merged commit dba2d79 into master Oct 18, 2016
@gavofyork gavofyork deleted the fix-2382 branch October 18, 2016 14:44
tomusdrw pushed a commit that referenced this pull request Oct 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parity doesn't start if used both --testnet --geth parameters
4 participants