28 | @@ -27,6 +29,13 @@ def set_test_params(self):
29 | def skip_test_if_missing_module(self):
30 | self.skip_if_no_wallet()
31 |
32 | + def add_options(self, parser):
33 | + parser.add_argument(
34 | + '--data_wallets_dir',
35 | + default=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data/wallets/'),
36 | + help='Test data with wallet directories (default: %(default)s)',
I'm not 100% fluent in python and haven't tested this but don't you need to use e.g. % locals() at the end to fill the %(default)s?
This is done by the argparse module. It can be tested with
$ ./test/functional/wallet_multiwallet.py --help|tail -4
--data_wallets_dir DATA_WALLETS_DIR
Test data with wallet directories (default: /home/marc
o/workspace/btc_bitcoin_core/test/functional/data/wall
ets/)