diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2017-11-18 13:36:37 +1300 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2017-12-13 23:36:43 +1300 |
commit | b67342906ced2353d378f4369c8d8a979d525fee (patch) | |
tree | e9872fb5c48a83b3407daed81661488e583e3137 /test | |
parent | 0d89fa0877930c6c8a539a656c1009ad8ab6755b (diff) |
Cleanups for walletdir PR
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/multiwallet.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/multiwallet.py b/test/functional/multiwallet.py index 4a721d1109..ceeb6f7cbd 100755 --- a/test/functional/multiwallet.py +++ b/test/functional/multiwallet.py @@ -40,7 +40,11 @@ class MultiWalletTest(BitcoinTestFramework): self.assert_start_raises_init_error(0, ['-wallet=w12'], 'Error loading wallet w12. -wallet filename must be a regular file.') # should not initialize if the specified walletdir does not exist - self.assert_start_raises_init_error(0, ['-walletdir=bad'], 'Error: Specified wallet directory "bad" does not exist.') + self.assert_start_raises_init_error(0, ['-walletdir=bad'], 'Error: Specified -walletdir "bad" does not exist') + # should not initialize if the specified walletdir is not a directory + not_a_dir = os.path.join(wallet_dir, 'notadir') + open(not_a_dir, 'a').close() + self.assert_start_raises_init_error(0, ['-walletdir='+not_a_dir], 'Error: Specified -walletdir "' + not_a_dir + '" is not a directory') # if wallets/ doesn't exist, datadir should be the default wallet dir wallet_dir2 = os.path.join(self.options.tmpdir, 'node0', 'regtest', 'walletdir') |