Skip to content

Commit 7a0d41e

Browse files
committed
Simplify dotnet run
1 parent d2fb9be commit 7a0d41e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

run-tests.ps1

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,9 @@ function Exec {
2323
}
2424
}
2525

26-
$EngDockerToolsDir = "$PSScriptRoot/eng/docker-tools"
27-
28-
$DotnetInstallDir = "$PSScriptRoot/.dotnet"
29-
& $EngDockerToolsDir/Install-DotNetSdk.ps1 -InstallPath $DotnetInstallDir
30-
3126
Push-Location "$PSScriptRoot\tests\Microsoft.DotNet.BuildTools.Prereqs.Docker.Tests"
3227
try {
33-
Exec "$DotnetInstallDir/dotnet run --project Microsoft.DotNet.BuildTools.Prereqs.Docker.Tests.csproj --report-xunit-trx --results-directory $PSScriptRoot/artifacts/TestResults $OptionalArgs"
28+
Exec "$PSScriptRoot/eng/common/dotnet.ps1 run --project Microsoft.DotNet.BuildTools.Prereqs.Docker.Tests.csproj --report-xunit-trx --results-directory $PSScriptRoot/artifacts/TestResults $OptionalArgs"
3429
}
3530
finally {
3631
Pop-Location

0 commit comments

Comments
 (0)