Rework directory checks/setups at launch (#318)

* rework setup code to ensure --top_level_dir flag works and all files are only output into the desired directory

* check for existence of wallet configuration file in target directory before asking recovery phrase and password

* test fixes and add test_mode flag to parse_init_args
This commit is contained in:
Yeastplume
2020-01-31 09:18:11 +00:00
committed by GitHub
parent 14e126bb1e
commit e71d79dc38
6 changed files with 101 additions and 26 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ where
{
let args = app.clone().get_matches_from(arg_vec);
let _ = get_wallet_subcommand(test_dir, wallet_name, args.clone());
let config = config::initial_setup_wallet(&ChainTypes::AutomatedTesting, None).unwrap();
let config = config::initial_setup_wallet(&ChainTypes::AutomatedTesting, None, true).unwrap();
let mut wallet_config = config.clone().members.unwrap().wallet;
wallet_config.chain_type = None;
wallet_config.api_secret_path = None;