Skip to content

Commit 57f71da

Browse files
author
Nitin Gurram
authored
Cherry-pick from master (#9843)
1 parent c9cc751 commit 57f71da

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Tasks/RunDistributedTestsV1/RunDistributedTests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,6 @@ Function Override-TestSettingProperties
148148
return $hasOverridenProperties
149149
}
150150

151-
# Error out unless there is a workaround
152-
$supportrft = Get-VstsTaskVariable -Name 'RFTSupport' -AsBool
153-
if(-not $supportrft)
154-
{
155-
throw "This task and its companion task (Visual Studio Test Agent Deployment) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."
156-
}
157-
158151
Write-Warning "This task and it’s companion task (Visual Studio Test Agent Deployment) are now deprecated and will stop working on 10-March-2019. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the ‘Visual Studio Test Platform’ task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."
159152
Write-Verbose "Entering script RunDistributedTests.ps1"
160153
Write-Verbose "TestMachineGroup = $testMachineGroup"
@@ -190,6 +183,13 @@ $checkTestAgentCompatScriptLocationMemberExists = CmdletHasMember "CheckTestAge
190183
$checkCustomSlicingEnabledMemberExists = CmdletHasMember "CustomSlicingEnabled"
191184
$taskContextMemberExists = CmdletHasMember "TaskContext"
192185

186+
# Error out unless there is a workaround
187+
$supportrft = Get-TaskVariable -Context $distributedTaskContext -Name "RFTSupport"
188+
if ($supportrft -notlike 'true')
189+
{
190+
throw "This task and its companion task (Visual Studio Test Agent Deployment) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."
191+
}
192+
193193
if($overrideRunParams -and $runSettingsFile -and (Test-Path $runSettingsFile))
194194
{
195195
if (([string]::Compare([io.path]::GetExtension($runSettingsFile), ".testsettings", $True) -eq 0))

Tasks/RunDistributedTestsV1/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 148,
17-
"Patch": 2
17+
"Patch": 3
1818
},
1919
"deprecated": true,
2020
"runsOn": [

Tasks/RunDistributedTestsV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 148,
17-
"Patch": 2
17+
"Patch": 3
1818
},
1919
"deprecated": true,
2020
"runsOn": [

0 commit comments

Comments
 (0)