From 54008b5f3dfb2776d364167474eff3dd6fa43692 Mon Sep 17 00:00:00 2001 From: Yao Sun Date: Fri, 25 Feb 2022 20:17:13 -0800 Subject: [PATCH] try env exit --- src/AppInstallerCLITests/Run-TestsInPackage.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppInstallerCLITests/Run-TestsInPackage.ps1 b/src/AppInstallerCLITests/Run-TestsInPackage.ps1 index 3117de0b680..13604fd167a 100644 --- a/src/AppInstallerCLITests/Run-TestsInPackage.ps1 +++ b/src/AppInstallerCLITests/Run-TestsInPackage.ps1 @@ -162,7 +162,7 @@ if ($ScriptWait) if ($_.Node.errors -ne 0 -Or $_.Node.failures -ne 0) { Write-Host "Test Failed." - exit 1 + [Environment]::Exit(1) } } Write-Host "Test passed."