From 3d2141bceefda32bef06ddda594eaf8665913276 Mon Sep 17 00:00:00 2001 From: Jimmy Durand Wesolowski Date: Mon, 2 Feb 2026 16:10:45 +0200 Subject: [PATCH] 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 [Julien: slightly reword commit log and add links] Signed-off-by: Julien Olivain --- support/testing/run-tests | 1 + 1 file changed, 1 insertion(+) diff --git a/support/testing/run-tests b/support/testing/run-tests index 2f670c03b8..1c4d2b4a85 100755 --- a/support/testing/run-tests +++ b/support/testing/run-tests @@ -142,4 +142,5 @@ def main(): if __name__ == "__main__": + multiprocessing.set_start_method("fork") sys.exit(main())