@@ -489,7 +489,7 @@ switch ($Command.ToLower())
489489 $lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale -- ponynoblock
490490 Write-Output $lldboutput
491491 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
492- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
492+ exit $err
493493 break
494494 }
495495 " stress-test-ubench-with-cd-release"
@@ -501,7 +501,7 @@ switch ($Command.ToLower())
501501 $lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale
502502 Write-Output $lldboutput
503503 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
504- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
504+ exit $err
505505 break
506506 }
507507 " stress-test-ubench-debug"
@@ -513,7 +513,7 @@ switch ($Command.ToLower())
513513 $lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale -- ponynoblock
514514 Write-Output $lldboutput
515515 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
516- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
516+ exit $err
517517 break
518518 }
519519 " stress-test-ubench-with-cd-debug"
@@ -525,7 +525,7 @@ switch ($Command.ToLower())
525525 $lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale
526526 Write-Output $lldboutput
527527 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
528- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
528+ exit $err
529529 break
530530 }
531531 " stress-test-tcp-open-close-release"
@@ -537,7 +537,7 @@ switch ($Command.ToLower())
537537 $lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe -- ponynoblock 1000
538538 Write-Output $lldboutput
539539 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
540- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
540+ exit $err
541541 break
542542 }
543543 " stress-test-tcp-open-close-with-cd-release"
@@ -549,7 +549,7 @@ switch ($Command.ToLower())
549549 $lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe 1000
550550 Write-Output $lldboutput
551551 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
552- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
552+ exit $err
553553 break
554554 }
555555 " stress-test-tcp-open-close-debug"
@@ -561,7 +561,7 @@ switch ($Command.ToLower())
561561 $lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe -- ponynoblock 1000
562562 Write-Output $lldboutput
563563 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
564- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
564+ exit $err
565565 break
566566 }
567567 " stress-test-tcp-open-close-with-cd-debug"
@@ -573,7 +573,7 @@ switch ($Command.ToLower())
573573 $lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe 1000
574574 Write-Output $lldboutput
575575 $err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
576- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
576+ exit $err
577577 break
578578 }
579579 " install"
0 commit comments