Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_filelock.py
Show All 32 Lines | def run_test(self): | ||||
if self.is_wallet_compiled(): | if self.is_wallet_compiled(): | ||||
wallet_dir = os.path.join(datadir, 'wallets') | wallet_dir = os.path.join(datadir, 'wallets') | ||||
self.log.info( | self.log.info( | ||||
"Check that we can't start a second bitcoind instance using the same wallet") | "Check that we can't start a second bitcoind instance using the same wallet") | ||||
expected_msg = "Error: Error initializing wallet database environment" | expected_msg = "Error: Error initializing wallet database environment" | ||||
self.nodes[1].assert_start_raises_init_error( | self.nodes[1].assert_start_raises_init_error( | ||||
extra_args=[ | extra_args=[ | ||||
'-walletdir={}'.format(wallet_dir), | '-walletdir={}'.format(wallet_dir), | ||||
'-wallet=', | '-wallet=' + self.default_wallet_name, | ||||
'-noserver'], | '-noserver'], | ||||
expected_msg=expected_msg, | expected_msg=expected_msg, | ||||
match=ErrorMatch.PARTIAL_REGEX) | match=ErrorMatch.PARTIAL_REGEX) | ||||
if __name__ == '__main__': | if __name__ == '__main__': | ||||
FilelockTest().main() | FilelockTest().main() |