Skip to content

Commit ffea41f

Browse files
committed
Enable all tests in feature_config_args.py
1 parent 66f5c17 commit ffea41f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/functional/feature_config_args.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,15 @@ def run_test(self):
108108
f.write("datadir=" + new_data_dir + "\n")
109109
f.write(conf_file_contents)
110110

111-
# Temporarily disabled, because this test would access the user's home dir (~/.bitcoin)
112-
#self.nodes[0].assert_start_raises_init_error(['-conf=' + conf_file], 'Error reading configuration file: specified data directory "' + new_data_dir + '" does not exist.')
111+
self.nodes[0].assert_start_raises_init_error(['-conf=' + conf_file], 'Error: Error reading configuration file: specified data directory "' + new_data_dir + '" does not exist.')
113112

114113
# Create the directory and ensure the config file now works
115114
os.mkdir(new_data_dir)
116-
# Temporarily disabled, because this test would access the user's home dir (~/.bitcoin)
117-
#self.start_node(0, ['-conf='+conf_file, '-wallet=w1'])
118-
#self.stop_node(0)
119-
#assert os.path.exists(os.path.join(new_data_dir, 'regtest', 'blocks'))
120-
#if self.is_wallet_compiled():
121-
#assert os.path.exists(os.path.join(new_data_dir, 'regtest', 'wallets', 'w1'))
115+
self.start_node(0, ['-conf='+conf_file, '-wallet=w1'])
116+
self.stop_node(0)
117+
assert os.path.exists(os.path.join(new_data_dir, 'regtest', 'blocks'))
118+
if self.is_wallet_compiled():
119+
assert os.path.exists(os.path.join(new_data_dir, 'regtest', 'wallets', 'w1'))
122120

123121
# Ensure command line argument overrides datadir in conf
124122
os.mkdir(new_data_dir_2)

0 commit comments

Comments
 (0)