diff --git a/.azure-pipelines/util/test-steps.yml b/.azure-pipelines/util/test-steps.yml index e2e004c56e6d..a5e4a18de597 100644 --- a/.azure-pipelines/util/test-steps.yml +++ b/.azure-pipelines/util/test-steps.yml @@ -28,7 +28,8 @@ steps: - pwsh: | Install-Module -Name Pester -RequiredVersion 4.10.1 -Force Install-Module -Name Az.Accounts -Scope CurrentUser -Force - $env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path + if ($IsWindows) { $sp = ";" } else { $sp = ":" } + $env:PSModulePath = $env:PSModulePath + $sp + (pwd).Path Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}} workingDirectory: 'artifacts/Debug' displayName: 'Test for AutoGen Modules With PowerShell Core'