From 0b282f9b00da08734e2381477aad32d64b933745 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Thu, 3 May 2018 11:09:28 +1000 Subject: Log early messages with -printtoconsole This ensures log messages prior to StartLogging() are replayed to the console as well as to the debug log file. --- test/functional/feature_config_args.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/functional/feature_config_args.py b/test/functional/feature_config_args.py index 2b93e3c24d..074a832594 100755 --- a/test/functional/feature_config_args.py +++ b/test/functional/feature_config_args.py @@ -61,9 +61,16 @@ class ConfArgsTest(BitcoinTestFramework): with open(inc_conf_file2_path, 'w', encoding='utf-8') as conf: conf.write('') # clear + def test_log_buffer(self): + with self.nodes[0].assert_debug_log(expected_msgs=['Warning: parsed potentially confusing double-negative -connect=0']): + self.start_node(0, extra_args=['-noconnect=0']) + self.stop_node(0) + def run_test(self): self.stop_node(0) + self.test_log_buffer() + self.test_config_file_parser() # Remove the -datadir argument so it doesn't override the config file -- cgit v1.2.3