mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-02 01:52:16 +00:00
Fix broken test due to config requiring ~/.tendermint_test
This commit is contained in:
parent
77a66f079f
commit
d6aa43fcda
@ -28,15 +28,19 @@ func initTMRoot(rootDir string) {
|
|||||||
rootDir = getTMRoot(rootDir)
|
rootDir = getTMRoot(rootDir)
|
||||||
|
|
||||||
// Remove ~/.tendermint_test_bak
|
// Remove ~/.tendermint_test_bak
|
||||||
|
if FileExists(rootDir + "_bak") {
|
||||||
err := os.RemoveAll(rootDir + "_bak")
|
err := os.RemoveAll(rootDir + "_bak")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
PanicSanity(err.Error())
|
PanicSanity(err.Error())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Move ~/.tendermint_test to ~/.tendermint_test_bak
|
// Move ~/.tendermint_test to ~/.tendermint_test_bak
|
||||||
err = os.Rename(rootDir, rootDir+"_bak")
|
if FileExists(rootDir + "_bak") {
|
||||||
|
err := os.Rename(rootDir, rootDir+"_bak")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
PanicSanity(err.Error())
|
PanicSanity(err.Error())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Create new dir
|
// Create new dir
|
||||||
EnsureDir(rootDir, 0700)
|
EnsureDir(rootDir, 0700)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user