Thursday, November 21, 2024

bitcoin core – Failing to create a debug log in useful take a look at

I’m engaged on a PR emigrate all test-only rpcs beneath the -test rpc . I’m dealing with a problem the place in one of many useful take a look at feature_config_args.py , the node shouldn’t be making a debug log . Right here is the test_framework.log.

2024-08-26T15:07:46.488000Z TestFramework (ERROR): Surprising exception caught throughout testing
Traceback (most up-to-date name final):
  File "/dwelling/probot/bitcoin/take a look at/useful/test_framework/test_framework.py", line 132, in primary
    self.run_test()
  File "/dwelling/probot/bitcoin/take a look at/useful/feature_config_args.py", line 429, in run_test
    self.test_testnet3_deprecation_msg()
  File "/dwelling/probot/bitcoin/take a look at/useful/feature_config_args.py", line 393, in test_testnet3_deprecation_msg
    with open(f"{log_dir}/debug.log", 'w'), self.nodes[0].assert_debug_log([t3_warning_log]):
  File "/dwelling/probot/.pyenv/variations/3.10.8/lib/python3.10/contextlib.py", line 135, in __enter__
    return subsequent(self.gen)
  File "/dwelling/probot/bitcoin/take a look at/useful/test_framework/test_node.py", line 485, in assert_debug_log
    prev_size = self.debug_log_size(encoding="utf-8")  # Should use similar encoding that's used to learn() beneath
  File "/dwelling/probot/bitcoin/take a look at/useful/test_framework/test_node.py", line 473, in debug_log_size
    with open(self.debug_log_path, **kwargs) as dl:
FileNotFoundError: [Errno 2] No such file or listing: '/tmp/test_runner_₿_🏃_20240826_203720/feature_config_args_0/node0/testnet3/debug.log'
2024-08-26T15:07:46.540000Z TestFramework (INFO): Stopping nodes

You’ll be able to have a look at the PR right here PR

The failing take a look at is unrelated to the modifications made within the file and I am unable to appear to determine why the debug.log shouldn’t be being created.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles