From c99ced74b92dc8828721da0fc52b69b2b3edbeb6 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Wed, 22 Sep 2021 12:49:16 -0400 Subject: [PATCH] Handle assembly already loaded errors in deploy stress test script --- eng/common/scripts/stress-testing/deploy-stress-tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 index 80c6471a1199..422c5a3c1e37 100644 --- a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 +++ b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 @@ -21,8 +21,8 @@ $ErrorActionPreference = 'Stop' $FailedCommands = New-Object Collections.Generic.List[hashtable] . (Join-Path $PSScriptRoot "../Helpers" PSModule-Helpers.ps1) -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module -Install-ModuleIfNotInstalled "az" "6.4.0" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module -ErrorAction Continue +Install-ModuleIfNotInstalled "az" "6.4.0" | Import-Module -ErrorAction Continue # Powershell does not (at time of writing) treat exit codes from external binaries # as cause for stopping execution, so do this via a wrapper function.