Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_config_args.py
Show All 17 Lines | def test_config_file_parser(self): | ||||
# Assume node is stopped | # Assume node is stopped | ||||
inc_conf_file_path = os.path.join( | inc_conf_file_path = os.path.join( | ||||
self.nodes[0].datadir, 'include.conf') | self.nodes[0].datadir, 'include.conf') | ||||
with open(os.path.join(self.nodes[0].datadir, 'bitcoin.conf'), 'a', encoding='utf-8') as conf: | with open(os.path.join(self.nodes[0].datadir, 'bitcoin.conf'), 'a', encoding='utf-8') as conf: | ||||
conf.write('includeconf={}\n'.format(inc_conf_file_path)) | conf.write('includeconf={}\n'.format(inc_conf_file_path)) | ||||
self.nodes[0].assert_start_raises_init_error( | self.nodes[0].assert_start_raises_init_error( | ||||
expected_msg='Error: Error parsing command line arguments: Invalid parameter -dash_cli', | expected_msg='Error: Error parsing command line arguments: Invalid parameter -dash_cli=1', | ||||
extra_args=['-dash_cli=1'], | extra_args=['-dash_cli=1'], | ||||
) | ) | ||||
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf: | with open(inc_conf_file_path, 'w', encoding='utf-8') as conf: | ||||
conf.write('dash_conf=1\n') | conf.write('dash_conf=1\n') | ||||
with self.nodes[0].assert_debug_log(expected_msgs=['Ignoring unknown configuration value dash_conf']): | with self.nodes[0].assert_debug_log(expected_msgs=['Ignoring unknown configuration value dash_conf']): | ||||
self.start_node(0) | self.start_node(0) | ||||
self.stop_node(0) | self.stop_node(0) | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |