Having an intermittent error in my local Windows:
0> py -3 test\functional\test_runner.py --jobs 40 --timeout-factor=8
1...
2165/269 - feature_versionbits_warning.py failed, Duration: 59 s
3
4
5stdout:
62023-09-25T11:29:08.904000Z TestFramework (INFO): PRNG seed is: 6135880998339750841
72023-09-25T11:29:09.019000Z TestFramework (INFO): Initializing test directory C:\Users\hebasto\AppData\Local\Temp\test_runner_₿_🏃_20230925_122333\feature_versionbits_warning_108
82023-09-25T11:29:25.118000Z TestFramework (INFO): Check that there is no warning if previous VB_BLOCKS have <VB_THRESHOLD blocks with unknown versionbits version.
92023-09-25T11:29:43.242000Z TestFramework (INFO): Check that there is a warning if previous VB_BLOCKS have >=VB_THRESHOLD blocks with unknown versionbits version.
102023-09-25T11:29:50.044000Z TestFramework.p2p (WARNING): Connection lost to 127.0.0.1:12296 due to [WinError 10054] An existing connection was forcibly closed by the remote host
112023-09-25T11:30:05.174000Z TestFramework (INFO): Stopping nodes
122023-09-25T11:30:05.548000Z TestFramework (INFO): Cleaning up C:\Users\hebasto\AppData\Local\Temp\test_runner_₿_🏃_20230925_122333\feature_versionbits_warning_108 on exit
132023-09-25T11:30:05.548000Z TestFramework (INFO): Tests successful
14
15
16stderr:
17Traceback (most recent call last):
18 File "C:\Users\hebasto\bitcoin/test/functional/feature_versionbits_warning.py", line 103, in <module>
19 VersionBitsWarningTest().main()
20 File "C:\Users\hebasto\bitcoin\test\functional\test_framework\test_framework.py", line 154, in main
21 exit_code = self.shutdown()
22 ^^^^^^^^^^^^^^^
23 File "C:\Users\hebasto\bitcoin\test\functional\test_framework\test_framework.py", line 361, in shutdown
24 shutil.rmtree(self.options.tmpdir)
25 File "C:\Python311\Lib\shutil.py", line 759, in rmtree
26 return _rmtree_unsafe(path, onerror)
27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28File "C:\Python311\Lib\shutil.py", line 617, in _rmtree_unsafe
29 _rmtree_unsafe(fullname, onerror)
30File "C:\Python311\Lib\shutil.py", line 617, in _rmtree_unsafe
31 _rmtree_unsafe(fullname, onerror)
32File "C:\Python311\Lib\shutil.py", line 622, in _rmtree_unsafe
33 onerror(os.unlink, fullname, sys.exc_info())
34File "C:\Python311\Lib\shutil.py", line 620, in _rmtree_unsafe
35 os.unlink(fullname)
36PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\hebasto\\AppData\\Local\\Temp\\test_runner_₿_🏃_20230925_122333\\feature_versionbits_warning_108\\node0\\regtest\\debug.log'
37
38
39166/269 - feature_startupnotify.py passed, Duration: 30 s
40...