summaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/windows/helpers.ps1
diff options
context:
space:
mode:
authorHeikki Halmet <heikki.halmet@qt.io>2017-04-24 12:31:38 +0300
committerLiang Qi <liang.qi@qt.io>2018-01-26 13:12:51 +0000
commit462a2aae2b8ba298d893ba52d16c1b13435f04ff (patch)
treeafb7bd28d2c6167d4dfae3baddea58a6cf472b3e /coin/provisioning/common/windows/helpers.ps1
parentdc5f851e787821733bc67c4a0328bc3db17be775 (diff)
Provisioning: Add Squish provisioning for Release Test Automation
Squish is required by RTA for testing. Task-number: QTQAINFRA-1523 Change-Id: I0c3653565f19cc9b798a0b63325c47b017cf5537 Reviewed-by: Joni Jäntti <joni.jantti@qt.io> Reviewed-by: Matti Paaso <matti.paaso@qt.io>
Diffstat (limited to 'coin/provisioning/common/windows/helpers.ps1')
-rw-r--r--coin/provisioning/common/windows/helpers.ps116
1 files changed, 16 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/helpers.ps1 b/coin/provisioning/common/windows/helpers.ps1
index f6a9fd90..4248d0ed 100644
--- a/coin/provisioning/common/windows/helpers.ps1
+++ b/coin/provisioning/common/windows/helpers.ps1
@@ -127,3 +127,19 @@ function is64bitWinHost
return 0
}
}
+
+Function Execute-Command
+{
+ Param (
+ [string]$command
+ )
+ Try {
+ echo "Executing command '$command'..."
+ $process = Start-Process -FilePath "cmd" -ArgumentList "/c $command" -PassThru -Wait -WindowStyle Hidden
+ if ($process.ExitCode) {throw "Error running command: '$command'"}
+ }
+ Catch {
+ $_.Exception.Message
+ exit 1
+ }
+}