Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_multiwallet.py
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
['-walletdir=debug.log'], 'Error: Specified -walletdir "debug.log" is not a directory', cwd=data_dir()) | ['-walletdir=debug.log'], 'Error: Specified -walletdir "debug.log" is not a directory', cwd=data_dir()) | ||||
# should not initialize if there are duplicate wallets | # should not initialize if there are duplicate wallets | ||||
self.nodes[0].assert_start_raises_init_error( | self.nodes[0].assert_start_raises_init_error( | ||||
['-wallet=w1', '-wallet=w1'], 'Error: Error loading wallet w1. Duplicate -wallet filename specified.') | ['-wallet=w1', '-wallet=w1'], 'Error: Error loading wallet w1. Duplicate -wallet filename specified.') | ||||
# should not initialize if one wallet is a copy of another | # should not initialize if one wallet is a copy of another | ||||
shutil.copyfile(wallet_dir('w8'), wallet_dir('w8_copy')) | shutil.copyfile(wallet_dir('w8'), wallet_dir('w8_copy')) | ||||
exp_stderr = r"CDB: Can't open database w8_copy \(duplicates fileid \w+ from w8\)" | exp_stderr = r"BerkeleyBatch: Can't open database w8_copy \(duplicates fileid \w+ from w8\)" | ||||
self.nodes[0].assert_start_raises_init_error( | self.nodes[0].assert_start_raises_init_error( | ||||
['-wallet=w8', '-wallet=w8_copy'], exp_stderr, partial_match=True) | ['-wallet=w8', '-wallet=w8_copy'], exp_stderr, partial_match=True) | ||||
# should not initialize if wallet file is a symlink | # should not initialize if wallet file is a symlink | ||||
os.symlink('w8', wallet_dir('w8_symlink')) | os.symlink('w8', wallet_dir('w8_symlink')) | ||||
self.nodes[0].assert_start_raises_init_error( | self.nodes[0].assert_start_raises_init_error( | ||||
['-wallet=w8_symlink'], r'Error: Invalid -wallet path \'w8_symlink\'\. .*') | ['-wallet=w8_symlink'], r'Error: Invalid -wallet path \'w8_symlink\'\. .*') | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |