mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-06 00:16:45 +08:00
Provisioning: Change how executables are waited to finish
This patch only affects Windows. Python3 provisioning took over 30-35 minutes. As both 32 and 64 bit versions are provisioned it took over 1h this change lowers time taken to 5 minutes. start-process with -wait flag waits for given process and its sub-processes to exit. Wait-process insteads just waits for process to exit. Change-Id: Ib9a323dcf9e2d07318a0d259a72ca4c4d0a4ed80 Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
committed by
Liang Qi
parent
bc12bb763f
commit
e21401751a
@@ -27,7 +27,8 @@ function Run-Executable
|
||||
$p = Start-Process -FilePath "$Executable" -Wait -PassThru
|
||||
} else {
|
||||
Write-Host "Running `"$Executable`" with arguments `"$Arguments`""
|
||||
$p = Start-Process -FilePath "$Executable" -ArgumentList $Arguments -Wait -PassThru
|
||||
$p = Start-Process -FilePath "$Executable" -ArgumentList $Arguments -PassThru
|
||||
Wait-Process -InputObject $p
|
||||
}
|
||||
if ($p.ExitCode -ne 0) {
|
||||
throw "Process $($Executable) exited with exit code $($p.ExitCode)"
|
||||
|
||||
Reference in New Issue
Block a user