mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
support/testing/run-tests: specify multiprocessing method
Since Python 3.14, the multiprocessing library API has changed. Quoting [1]: """ On POSIX platforms the default start method was changed from fork to forkserver to retain the performance but avoid common multithreaded process incompatibilities. """ Since this is expected to be under "if __name__ == '__main__'", we need to have this in support/testing/run-tests regardless of how this will be fixed in nose2. See [2]. Fixes: [3] [1] https://docs.python.org/3.14/library/multiprocessing.html#contexts-and-start-methods [2] https://docs.python.org/3.14/library/multiprocessing.html#multiprocessing.set_start_method [3] https://gitlab.com/buildroot.org/buildroot/-/issues/156 Signed-off-by: Jimmy Durand Wesolowski <jimmy.wesolowski@mobileye.com> [Julien: slightly reword commit log and add links] Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
934d3e62e6
commit
3d2141bcee
@@ -142,4 +142,5 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
multiprocessing.set_start_method("fork")
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user