Skip to content

Commit e5cf671

Browse files
committed
Ensure that exceptions raised by wait-process are terminating errors
1 parent 82a56f8 commit e5cf671

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

appveyor/scripts/installNVDA.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $outputDir=$(resolve-path .\testOutput)
1010
$installerLogFilePath="$outputDir\nvda_install.log"
1111
$installerProcess=start-process -FilePath "$nvdaLauncherFile" -ArgumentList "--install-silent --debug-logging --log-file $installerLogFilePath" -passthru
1212
try {
13-
$installerProcess | wait-process -Timeout 180
13+
$installerProcess | wait-process -Timeout 180 -ErrorAction Stop
1414
$errorCode=$installerProcess.ExitCode
1515
} catch {
1616
echo "NVDA installer process timed out"

0 commit comments

Comments
 (0)