From 6a790072d920647b8745d7b259240a70cc1f43e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Rivera?= Date: Sat, 9 Nov 2024 10:28:53 -0600 Subject: [PATCH] Run single process tests on Windows CI to avoid some permission errors. --- .ci/azp-windows-test.yml | 2 +- test/test_all.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/azp-windows-test.yml b/.ci/azp-windows-test.yml index c595c211f3..08f3a4d516 100644 --- a/.ci/azp-windows-test.yml +++ b/.ci/azp-windows-test.yml @@ -26,7 +26,7 @@ steps: $env:path = 'C:\Windows\system32;C:\Windows;' + $env:CXX_PATH cd test echo "using" $env:TEST_TOOLSET ":" ":" $env:CXX ";" > ${env:HOME}/user-config.jam - py -X utf8 test_all.py $env:TEST_TOOLSET + py -X utf8 test_all.py $env:TEST_TOOLSET --not-parallel cd .. displayName: Test - powershell: | diff --git a/test/test_all.py b/test/test_all.py index 24b234f91e..8542efacbc 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -73,7 +73,8 @@ def run_tests(critical_tests, other_tests): max_test_name_len = len(x) cancelled = False - executor = concurrent.futures.ProcessPoolExecutor() + max_workers = 1 if "--not-parallel" in sys.argv else None + executor = concurrent.futures.ProcessPoolExecutor(max_workers=max_workers) def handler(sig, frame): cancelled = True