Skip to content

Commit 726539f

Browse files
authored
Adding single select option (#20002)
1 parent b61653a commit 726539f

File tree

10 files changed

+22
-49
lines changed

10 files changed

+22
-49
lines changed

Tasks/AzureTestPlanV0/automatedTestInvoker.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import { ciDictionary } from './ciEventLogger';
66
import { executeGoTests } from './Invokers/goinvoker';
77
export async function testInvoker(testsToBeExecuted: string[], ciData: ciDictionary): Promise<number> {
88

9-
const testLanguageStrings = tl.getDelimitedInput('testLanguageInput', ',', true);
9+
const testLanguage = tl.getInput('testLanguageInput', true);
1010

1111
let exitStatusCode = 0;
12-
13-
for (const testLanguage of testLanguageStrings) {
14-
let exitCode = 0;
12+
let exitCode = 0;
1513

1614
if (testLanguage === null || testLanguage === undefined) {
1715
console.log("Please select the test framework language from the task dropdown list to execute automated tests");
@@ -49,7 +47,6 @@ export async function testInvoker(testsToBeExecuted: string[], ciData: ciDiction
4947
}
5048

5149
exitStatusCode = exitStatusCode || exitCode;
52-
}
5350

5451
tl.debug(`Execution Status Code for Automated Execution Flow: ${exitStatusCode}`);
5552
return exitStatusCode;

Tasks/AzureTestPlanV0/task.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 241,
17-
"Patch": 0
17+
"Patch": 2
1818
},
1919
"preview": true,
2020
"demands": [],
@@ -81,9 +81,6 @@
8181
"Java-Gradle": "Java-Gradle",
8282
"Python": "Python",
8383
"Go": "Go"
84-
},
85-
"properties": {
86-
"MultiSelectFlatList": "True"
8784
}
8885
},
8986
{

Tasks/AzureTestPlanV0/task.loc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 241,
17-
"Patch": 0
17+
"Patch": 2
1818
},
1919
"preview": true,
2020
"demands": [],
@@ -81,9 +81,6 @@
8181
"Java-Gradle": "Java-Gradle",
8282
"Python": "Python",
8383
"Go": "Go"
84-
},
85-
"properties": {
86-
"MultiSelectFlatList": "True"
8784
}
8885
},
8986
{
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Default|0.241.0
2-
Node20-225|0.241.1
1+
Default|0.241.2
2+
Node20-225|0.241.3

_generated/AzureTestPlanV0/automatedTestInvoker.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import { ciDictionary } from './ciEventLogger';
66
import { executeGoTests } from './Invokers/goinvoker';
77
export async function testInvoker(testsToBeExecuted: string[], ciData: ciDictionary): Promise<number> {
88

9-
const testLanguageStrings = tl.getDelimitedInput('testLanguageInput', ',', true);
9+
const testLanguage = tl.getInput('testLanguageInput', true);
1010

1111
let exitStatusCode = 0;
12-
13-
for (const testLanguage of testLanguageStrings) {
14-
let exitCode = 0;
12+
let exitCode = 0;
1513

1614
if (testLanguage === null || testLanguage === undefined) {
1715
console.log("Please select the test framework language from the task dropdown list to execute automated tests");
@@ -49,7 +47,6 @@ export async function testInvoker(testsToBeExecuted: string[], ciData: ciDiction
4947
}
5048

5149
exitStatusCode = exitStatusCode || exitCode;
52-
}
5350

5451
tl.debug(`Execution Status Code for Automated Execution Flow: ${exitStatusCode}`);
5552
return exitStatusCode;

_generated/AzureTestPlanV0/task.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 241,
17-
"Patch": 0
17+
"Patch": 2
1818
},
1919
"preview": true,
2020
"demands": [],
@@ -81,9 +81,6 @@
8181
"Java-Gradle": "Java-Gradle",
8282
"Python": "Python",
8383
"Go": "Go"
84-
},
85-
"properties": {
86-
"MultiSelectFlatList": "True"
8784
}
8885
},
8986
{
@@ -180,7 +177,7 @@
180177
"MultipleMatchingGradlewFound": "Multiple gradlew files found. Selecting the first matched instance"
181178
},
182179
"_buildConfigMapping": {
183-
"Default": "0.241.0",
184-
"Node20-225": "0.241.1"
180+
"Default": "0.241.2",
181+
"Node20-225": "0.241.3"
185182
}
186183
}

_generated/AzureTestPlanV0/task.loc.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 241,
17-
"Patch": 0
17+
"Patch": 2
1818
},
1919
"preview": true,
2020
"demands": [],
@@ -81,9 +81,6 @@
8181
"Java-Gradle": "Java-Gradle",
8282
"Python": "Python",
8383
"Go": "Go"
84-
},
85-
"properties": {
86-
"MultiSelectFlatList": "True"
8784
}
8885
},
8986
{
@@ -180,7 +177,7 @@
180177
"MultipleMatchingGradlewFound": "ms-resource:loc.messages.MultipleMatchingGradlewFound"
181178
},
182179
"_buildConfigMapping": {
183-
"Default": "0.241.0",
184-
"Node20-225": "0.241.1"
180+
"Default": "0.241.2",
181+
"Node20-225": "0.241.3"
185182
}
186183
}

_generated/AzureTestPlanV0_Node20/automatedTestInvoker.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import { ciDictionary } from './ciEventLogger';
66
import { executeGoTests } from './Invokers/goinvoker';
77
export async function testInvoker(testsToBeExecuted: string[], ciData: ciDictionary): Promise<number> {
88

9-
const testLanguageStrings = tl.getDelimitedInput('testLanguageInput', ',', true);
9+
const testLanguage = tl.getInput('testLanguageInput', true);
1010

1111
let exitStatusCode = 0;
12-
13-
for (const testLanguage of testLanguageStrings) {
14-
let exitCode = 0;
12+
let exitCode = 0;
1513

1614
if (testLanguage === null || testLanguage === undefined) {
1715
console.log("Please select the test framework language from the task dropdown list to execute automated tests");
@@ -49,7 +47,6 @@ export async function testInvoker(testsToBeExecuted: string[], ciData: ciDiction
4947
}
5048

5149
exitStatusCode = exitStatusCode || exitCode;
52-
}
5350

5451
tl.debug(`Execution Status Code for Automated Execution Flow: ${exitStatusCode}`);
5552
return exitStatusCode;

_generated/AzureTestPlanV0_Node20/task.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 241,
17-
"Patch": 1
17+
"Patch": 3
1818
},
1919
"preview": true,
2020
"demands": [],
@@ -81,9 +81,6 @@
8181
"Java-Gradle": "Java-Gradle",
8282
"Python": "Python",
8383
"Go": "Go"
84-
},
85-
"properties": {
86-
"MultiSelectFlatList": "True"
8784
}
8885
},
8986
{
@@ -184,7 +181,7 @@
184181
"MultipleMatchingGradlewFound": "Multiple gradlew files found. Selecting the first matched instance"
185182
},
186183
"_buildConfigMapping": {
187-
"Default": "0.241.0",
188-
"Node20-225": "0.241.1"
184+
"Default": "0.241.2",
185+
"Node20-225": "0.241.3"
189186
}
190187
}

_generated/AzureTestPlanV0_Node20/task.loc.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 241,
17-
"Patch": 1
17+
"Patch": 3
1818
},
1919
"preview": true,
2020
"demands": [],
@@ -81,9 +81,6 @@
8181
"Java-Gradle": "Java-Gradle",
8282
"Python": "Python",
8383
"Go": "Go"
84-
},
85-
"properties": {
86-
"MultiSelectFlatList": "True"
8784
}
8885
},
8986
{
@@ -184,7 +181,7 @@
184181
"MultipleMatchingGradlewFound": "ms-resource:loc.messages.MultipleMatchingGradlewFound"
185182
},
186183
"_buildConfigMapping": {
187-
"Default": "0.241.0",
188-
"Node20-225": "0.241.1"
184+
"Default": "0.241.2",
185+
"Node20-225": "0.241.3"
189186
}
190187
}

0 commit comments

Comments
 (0)