]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Ensure that iOS test re-runs don't try to spawn a process. (GH-122994) (#123368)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 27 Aug 2024 00:53:05 +0000 (02:53 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Aug 2024 00:53:05 +0000 (08:53 +0800)
Ensure that iOS test re-runs don't try to spawn a process. (GH-122994)

Adds the --single-process option to the iOS test runner to ensure re-runs execute in the same process.
(cherry picked from commit e03073ff20107793a4ea28cdac0d6894774dd110)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
iOS/testbed/iOSTestbedTests/iOSTestbedTests.m

index b17bc275a66e42f017b2ca76bcbf85218a39e605..9bf502a808eb886896f71ce2070019974727f969 100644 (file)
@@ -15,6 +15,7 @@
     const char *argv[] = {
         "iOSTestbed", // argv[0] is the process that is running.
         "-uall",  // Enable all resources
+        "--single-process",  // always run all tests sequentially in a single process
         "--rerun",  // Re-run failed tests in verbose mode
         "-W",  // Display test output on failure
         // To run a subset of tests, add the test names below; e.g.,