From 265bfba220059ea9596facca6df009d3dff2016e Mon Sep 17 00:00:00 2001 From: derek Date: Tue, 23 Jun 2020 13:45:19 +0800 Subject: [PATCH] Fix the seperator issue in Linux and Mac --- .azure-pipelines/util/test-steps.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'