Skip to content

Commit 8e6c703

Browse files
committed
Switch to testdrive
1 parent 0df0a16 commit 8e6c703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

powershell-adapter/Tests/win_powershellgroup.tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ resources:
273273

274274
It 'List works with class-based PS DSC resources' -Skip:(!$IsWindows) {
275275
BeforeDiscovery {
276-
$windowsPowerShellPath = Join-Path $env:ProgramFiles 'WindowsPowerShell' 'Modules'
276+
$windowsPowerShellPath = Join-Path $testDrive 'WindowsPowerShell' 'Modules'
277+
$env:PSModulePath += [System.IO.Path]::PathSeparator + $windowsPowerShellPath
277278

278279
$moduleFile = @"
279280
@{

0 commit comments

Comments
 (0)