From d75100ae015cfa97cb6b11356f9b27840d6d3924 Mon Sep 17 00:00:00 2001 From: Zingo Andersen Date: Tue, 10 Nov 2026 14:31:22 +0100 Subject: [PATCH] Run Windows Python unit tests in parallel Use eight pytest workers to reduce the sequential test runtime. Report the 20 slowest test phases to help identify bottlenecks. Authored with assistance from OpenAI Codex. Change-Id: If14c0047bae03bd39f35624b0640b89aa33ddb24 Signed-off-by: Zingo Andersen --- .ci/scripts/unittest-windows.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.ci/scripts/unittest-windows.ps1 b/.ci/scripts/unittest-windows.ps1 index 6f1365bc3fc..af43477b724 100644 --- a/.ci/scripts/unittest-windows.ps1 +++ b/.ci/scripts/unittest-windows.ps1 @@ -1,3 +1,8 @@ +# Copyright 2026 Arm Limited and/or its affiliates. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + param ( [string]$buildMode = "Release" ) @@ -31,8 +36,8 @@ if ($LASTEXITCODE -ne 0) { cd .. # Run pytest -pytest -v -c pytest-windows.ini +pytest -v -n 8 --durations=20 -c pytest-windows.ini if ($LASTEXITCODE -ne 0) { Write-Host "Pytest invocation was unsuccessful. Exit code: $LASTEXITCODE." exit $LASTEXITCODE -} \ No newline at end of file +}