Move -createwalletbackups=0 into test_node.py

Not all tests use test_framework.py, but all use test_node.py
This commit is contained in:
Alexander Block 2019-09-23 21:43:21 +02:00
parent 4049754f4a
commit 1596b1dfaa
2 changed files with 3 additions and 2 deletions

View File

@ -225,8 +225,6 @@ class BitcoinTestFramework(object):
extra_args = []
if binary is None:
binary = os.getenv("BITCOIND", "dashd")
# Don't try auto backups (they fail a lot when running tests)
extra_args = extra_args + [ "-createwalletbackups=0" ]
node = TestNode(i, dirname, extra_args, rpchost, timewait, binary, stderr, self.mocktime, coverage_dir=self.options.coveragedir)
node.start()
node.wait_for_rpc_connection()

View File

@ -45,6 +45,9 @@ class TestNode():
self.extra_args = extra_args
self.args = [self.binary, "-datadir=" + self.datadir, "-server", "-keypool=1", "-discover=0", "-rest", "-logtimemicros", "-debug", "-debugexclude=libevent", "-debugexclude=leveldb", "-mocktime=" + str(mocktime), "-uacomment=testnode%d" % i]
# Don't try auto backups (they fail a lot when running tests)
self.args.append("-createwalletbackups=0")
self.running = False
self.process = None
self.rpc_connected = False