From 09867ec01af1c0e7fa73be46fb458ce342f8c298 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Wed, 8 Jul 2020 13:49:46 -0700 Subject: [PATCH] Parameterize windows packaging test script (#58980) --- .ci/os.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/os.ps1 b/.ci/os.ps1 index 54f5ca54ffaa3..0fa43c4b250fa 100644 --- a/.ci/os.ps1 +++ b/.ci/os.ps1 @@ -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