Parameterize windows packaging test script (#58980)

This commit is contained in:
Mark Vieira 2020-07-08 13:49:46 -07:00
parent 96a06685cf
commit b41bbe2911
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,5 @@
param($GradleTasks='destructiveDistroTest')
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
@ -25,7 +27,6 @@ Remove-Item -Recurse -Force \tmp -ErrorAction Ignore
New-Item -ItemType directory -Path \tmp
$ErrorActionPreference="Continue"
# TODO: remove the task exclusions once dependencies are set correctly and these don't run for Windows or buldiung the deb on windows is fixed
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain destructiveDistroTest
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain $GradleTasks
exit $LastExitCode