@ -25,13 +26,13 @@ class ConfArgsTest(BitcoinTestFramework):
# Check that using -datadir argument on non-existent directory fails
self.nodes[0].datadir=new_data_dir
self.nodes[0].assert_start_raises_init_error(['-datadir='+new_data_dir],'Error: Specified data directory "'+ new_data_dir +'" does not exist.')
self.nodes[0].assert_start_raises_init_error(['-datadir='+new_data_dir],'Error: Specified data directory "'+re.escape(new_data_dir)+'" does not exist.')
# Check that using non-existent datadir in conf file fails
self.nodes[0].assert_start_raises_init_error(['-conf='+conf_file],'Error reading configuration file: specified data directory "'+ new_data_dir +'" does not exist.')
self.nodes[0].assert_start_raises_init_error(['-conf='+conf_file],'Error reading configuration file: specified data directory "'+re.escape(new_data_dir)+'" does not exist.')
# Create the directory and ensure the config file now works