Skip to content

Conversation

@meshcollider
Copy link
Contributor

Fixes #11192

The directory remains unused, but this stops the tests touching ~/.bitcoin at all (namely creating it if it doesn't exist)

@fanquake fanquake added the Tests label Sep 1, 2017
@meshcollider
Copy link
Contributor Author

Travis failure is in an unrelated test, please rerun :)

@jonasschnelli
Copy link
Contributor

utACK dea086f

1 similar comment
@cdecker
Copy link
Contributor

cdecker commented Sep 3, 2017

utACK dea086f

SetupNetworking();
SelectParams(CBaseChainParams::MAIN);
noui_connect();
ClearDatadirCache();
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to only do this for Qt?

Copy link
Member

Choose a reason for hiding this comment

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

We already do it on src/test/test_bitcoin.cpp

@laanwj
Copy link
Member

laanwj commented Sep 5, 2017

Tested ACK dea086f, thanks!

@laanwj laanwj merged commit dea086f into bitcoin:master Sep 6, 2017
laanwj added a commit that referenced this pull request Sep 6, 2017
dea086f Stop test_bitcoin-qt touching ~/.bitcoin (MeshCollider)

Pull request description:

  Fixes #11192

  The directory remains unused, but this stops the tests touching ~/.bitcoin at all (namely creating it if it doesn't exist)

Tree-SHA512: e59ad6b83dbc5ea2fb2761994c09933721d29668b0eef09b9d938a4ee1c67871c5125c57483ee0ea25f2385e308d275d86bcb9087dd4d502923013b4f3dbac82
@laanwj
Copy link
Member

laanwj commented Sep 6, 2017

@MarcoFalke mentioned needing a test for this on travis (that the tests don't touch ~/.bitcoin) but this can be done in a separate PR

@maflcko
Copy link
Member

maflcko commented Sep 6, 2017

Making sure that ~/.bitcoin istn't touched implies that something creates it first. Not sure if we want that in our .travis.yml.

@meshcollider meshcollider deleted the 201708_qt_test_dir branch September 7, 2017 04:58
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Oct 3, 2017
@luke-jr
Copy link
Member

luke-jr commented Nov 10, 2017

@MarcoFalke Eh, we can just add a check that ~/.bitcoin still doesn't exist at the end?

@maflcko
Copy link
Member

maflcko commented Nov 10, 2017 via email

codablock pushed a commit to codablock/dash that referenced this pull request Sep 24, 2019
dea086f Stop test_bitcoin-qt touching ~/.bitcoin (MeshCollider)

Pull request description:

  Fixes bitcoin#11192

  The directory remains unused, but this stops the tests touching ~/.bitcoin at all (namely creating it if it doesn't exist)

Tree-SHA512: e59ad6b83dbc5ea2fb2761994c09933721d29668b0eef09b9d938a4ee1c67871c5125c57483ee0ea25f2385e308d275d86bcb9087dd4d502923013b4f3dbac82
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: test_bitcoin-qt creates an empty ~/.bitcoin

8 participants