From 350156a895dfb7791747fa468115119edf08edaa Mon Sep 17 00:00:00 2001 From: PastaClaw Date: Wed, 6 May 2026 09:47:18 -0500 Subject: [PATCH] test: recreate RPC coverage directory before writes --- test/functional/test_framework/coverage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/test_framework/coverage.py b/test/functional/test_framework/coverage.py index 72d7902880e8..59d2b00a76b7 100644 --- a/test/functional/test_framework/coverage.py +++ b/test/functional/test_framework/coverage.py @@ -54,6 +54,7 @@ def _log_call(self): rpc_method = self.auth_service_proxy_instance._service_name if self.coverage_logfile: + os.makedirs(os.path.dirname(self.coverage_logfile), exist_ok=True) with open(self.coverage_logfile, 'a+', encoding='utf8') as f: f.write("%s\n" % rpc_method) @@ -92,6 +93,7 @@ def write_all_rpc_commands(dirname: str, node: AuthServiceProxy) -> bool: """ filename = os.path.join(dirname, REFERENCE_FILENAME) + os.makedirs(dirname, exist_ok=True) if os.path.isfile(filename): return False