Fixes #11192
The directory remains unused, but this stops the tests touching ~/.bitcoin at all (namely creating it if it doesn't exist)
Fixes #11192
The directory remains unused, but this stops the tests touching ~/.bitcoin at all (namely creating it if it doesn't exist)
Travis failure is in an unrelated test, please rerun :)
utACK dea086f498097d19a2c9acbfc753c9c2d68dbb03
utACK dea086f498097d19a2c9acbfc753c9c2d68dbb03
52 | @@ -53,6 +53,10 @@ int main(int argc, char *argv[]) 53 | SetupNetworking(); 54 | SelectParams(CBaseChainParams::MAIN); 55 | noui_connect(); 56 | + ClearDatadirCache();
Any reason to only do this for Qt?
We already do it on src/test/test_bitcoin.cpp
Tested ACK dea086f49, thanks!
@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
Making sure that ~/.bitcoin istn't touched implies that something creates it first. Not sure if we want that in our .travis.yml.
@MarcoFalke Eh, we can just add a check that ~/.bitcoin still doesn't exist at the end?
Iirc we did that and it failed occasionally. This is on my list of things to take a look at ...
On Nov 10, 2017 04:06, "Luke Dashjr" notifications@github.com wrote:
@MarcoFalke https://github.com/marcofalke Eh, we can just add a check that ~/.bitcoin still doesn't exist at the end?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/11210#issuecomment-343417188, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmv7gKKJCFcDv-SytUAyUvBZFKuA32ks5s1BIcgaJpZM4PKBvu .