@@ -489,7 +489,7 @@ switch ($Command.ToLower())
489
489
$lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale -- ponynoblock
490
490
Write-Output $lldboutput
491
491
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
492
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
492
+ exit $err
493
493
break
494
494
}
495
495
" stress-test-ubench-with-cd-release"
@@ -501,7 +501,7 @@ switch ($Command.ToLower())
501
501
$lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale
502
502
Write-Output $lldboutput
503
503
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
504
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
504
+ exit $err
505
505
break
506
506
}
507
507
" stress-test-ubench-debug"
@@ -513,7 +513,7 @@ switch ($Command.ToLower())
513
513
$lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale -- ponynoblock
514
514
Write-Output $lldboutput
515
515
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
516
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
516
+ exit $err
517
517
break
518
518
}
519
519
" stress-test-ubench-with-cd-debug"
@@ -525,7 +525,7 @@ switch ($Command.ToLower())
525
525
$lldboutput = & $lldbcmd $lldbargs $outDir \ubench.exe -- pingers 320 -- initial- pings 5 -- report- count 40 -- report- interval 300 -- ponynoscale
526
526
Write-Output $lldboutput
527
527
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
528
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
528
+ exit $err
529
529
break
530
530
}
531
531
" stress-test-tcp-open-close-release"
@@ -537,7 +537,7 @@ switch ($Command.ToLower())
537
537
$lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe -- ponynoblock 1000
538
538
Write-Output $lldboutput
539
539
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
540
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
540
+ exit $err
541
541
break
542
542
}
543
543
" stress-test-tcp-open-close-with-cd-release"
@@ -549,7 +549,7 @@ switch ($Command.ToLower())
549
549
$lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe 1000
550
550
Write-Output $lldboutput
551
551
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
552
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
552
+ exit $err
553
553
break
554
554
}
555
555
" stress-test-tcp-open-close-debug"
@@ -561,7 +561,7 @@ switch ($Command.ToLower())
561
561
$lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe -- ponynoblock 1000
562
562
Write-Output $lldboutput
563
563
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
564
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
564
+ exit $err
565
565
break
566
566
}
567
567
" stress-test-tcp-open-close-with-cd-debug"
@@ -573,7 +573,7 @@ switch ($Command.ToLower())
573
573
$lldboutput = & $lldbcmd $lldbargs $outDir \open-close.exe 1000
574
574
Write-Output $lldboutput
575
575
$err = Get-ProcessExitCodeFromLLDB - LLDBOutput $lldboutput
576
- if ( $err -ne 0 ) { throw " Stress test failed: exit code $err " }
576
+ exit $err
577
577
break
578
578
}
579
579
" install"
0 commit comments