Skip to content

Commit 13e8cb1

Browse files
committed
Address review comments
1 parent 4aeabe0 commit 13e8cb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AzureDevOps/DistributeTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.SYNOPSIS
33
Distribute tests across multiple agents in VSTS pipeline
44
.DESCRIPTION
5-
This script divides test files among multiple agents for faster execution. It searches for files matching a specific pattern (for example, `test*`) and assigns them based on the agent number.
5+
This script divides test files across multiple agents for faster execution. It searches for files matching a specific pattern (for example, `test*`) and assigns them based on the agent number.
66
For example, if there are multiple files [test1..test10] and 2 agents:
77
- Agent 1 runs tests from odd-numbered files.
88
- Agent 2 runs tests from even-numbered files.

AzureDevOps/DistributeTests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# USAGE: ./distribute_tests.sh
77
#
8-
# DESCRIPTION: This script divides test files among multiple agents for faster execution. It searches for files matching a specific pattern (for example, `test*`) and assigns them based on the agent number.
8+
# DESCRIPTION: This script divides test files across multiple agents for faster execution. It searches for files matching a specific pattern (for example, `test*`) and assigns them based on the agent number.
99
# For example, if there are multiple files [test1..test10] and 2 agents:
1010
# - Agent 1 runs tests from odd-numbered files.
1111
# - Agent 2 runs tests from even-numbered files.
@@ -20,7 +20,7 @@ while IFS= read -r file; do
2020
done < <(find ./tests -type f -name "*.m" | sort)
2121

2222
totalAgents=${SYSTEM_TOTALJOBSINPHASE} # Standard VSTS variable containing the number of parallel jobs
23-
agentNumber=${SYSTEM_JOBPOSITIONINPHASE} # Current job positioN
23+
agentNumber=${SYSTEM_JOBPOSITIONINPHASE} # Current job position
2424
testCount=${#tests[@]}
2525

2626
# Handle cases where the pipeline runs without parallel configuration (single agent)

0 commit comments

Comments
 (0)