Skip to content

Commit 7457e04

Browse files
Robert Holtrjmholt
authored andcommitted
Undo module path mangling in test
1 parent 4137d91 commit 7457e04

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Tests/Engine/ModuleDependencyHandler.tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ Describe "Resolve DSC Resource Dependency" {
202202
Copy-Item -Recurse -Path $modulePath -Destination $tempModulePath
203203
}
204204

205+
AfterAll {
206+
$env:PSModulePath = $oldPSModulePath
207+
}
208+
205209
It "has a single parse error" -skip:$skipTest {
206210
# invoke script analyzer
207211
$dr = Invoke-ScriptAnalyzer -Path $violationFilePath -ErrorVariable analyzerErrors -ErrorAction SilentlyContinue

tools/appveyor.psm1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ function Invoke-AppveyorTest {
5656
Copy-Item "${CheckoutPath}\out\PSScriptAnalyzer" "$modulePath\" -Recurse -Force
5757
Copy-Item "${CheckoutPath}\PSCompatibilityCollector\out\PSCompatibilityCollector" "$modulePath\" -Recurse -Force
5858

59-
Write-Verbose -Verbose (Get-Module -ListAvailable PSCompatibilityCollector | ForEach-Object { $_.ExportedCmdlets.Keys | ForEach-Object { $_.ToString() } } | Out-String)
60-
6159
# Set up testing assets
6260
$testResultsPath = Join-Path ${CheckoutPath} TestResults.xml
6361
$testScripts = "${CheckoutPath}\Tests\Engine","${CheckoutPath}\Tests\Rules","${CheckoutPath}\Tests\Documentation","${CheckoutPath}\PSCompatibilityCollector\Tests"

0 commit comments

Comments
 (0)