Skip to content

Commit

Permalink
Run single process tests on Windows CI to avoid some permission errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Nov 9, 2024
1 parent 710def1 commit 6a79007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/azp-windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
3 changes: 2 additions & 1 deletion test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a79007

Please sign in to comment.