You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AzureDevOps/DistributeTests.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
.SYNOPSIS
3
3
Distribute tests across multiple agents in VSTS pipeline
4
4
.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.
6
6
For example, if there are multiple files [test1..test10] and 2 agents:
Copy file name to clipboardExpand all lines: AzureDevOps/DistributeTests.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
#
6
6
# USAGE: ./distribute_tests.sh
7
7
#
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.
9
9
# For example, if there are multiple files [test1..test10] and 2 agents:
10
10
# - Agent 1 runs tests from odd-numbered files.
11
11
# - Agent 2 runs tests from even-numbered files.
@@ -20,7 +20,7 @@ while IFS= read -r file; do
20
20
done<<(find ./tests -type f -name "*.m"| sort)
21
21
22
22
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
24
24
testCount=${#tests[@]}
25
25
26
26
# Handle cases where the pipeline runs without parallel configuration (single agent)
0 commit comments