Skip to content

Commit f020fc5

Browse files
committed
Fixed script to use ':' default path delimiter for Travis.
1 parent ac98807 commit f020fc5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/TestModuleLoading.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
# ----------------------------------------------------------------------------------
1414

1515
param (
16-
[string] $configuration = 'Debug'
16+
[string] $configuration = 'Debug',
17+
[string] $pathDelimiter = ':'
1718
)
1819

19-
$outputDir = "$PSScriptRoot/../src/Package/$configuration/"
20+
$tempModulePath = $env:PSModulePath
21+
$outputDir = "$PSScriptRoot/../src/Package/$configuration"
2022
Write-Warning "Running Test-ModuleManfiest on .psd1 files in $outputDir"
21-
$env:PSModulePath += ";$outputDir/ResourceManager/AzureResourceManager/;$outputDir/Storage/"
23+
$env:PSModulePath += "$pathDelimiter$outputDir/ResourceManager/AzureResourceManager/$pathDelimiter$outputDir/Storage/"
2224
Write-Warning "PSModulePath: $env:PSModulePath"
2325

2426
$success = $true
@@ -31,6 +33,7 @@ foreach($psd1FilePath in Get-ChildItem -Path $outputDir -Recurse -Filter *.psd1)
3133
}
3234
}
3335

36+
$env:PSModulePath = $tempModulePath
3437
if(-not $success) {
3538
Write-Warning 'Failure: One or more module manifests failed to load.'
3639
exit 1

0 commit comments

Comments
 (0)