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>
This commit is contained in:
Heikki Halmet
2017-04-24 12:31:38 +03:00
committed by Liang Qi
parent dc5f851e78
commit 462a2aae2b
14 changed files with 419 additions and 0 deletions

View File

@@ -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
}
}