Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Jul 29, 2023
1 parent cc36ec9 commit d2e2e05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ foreach ($project in $projects) {
Copy-Item "$path/$project" $target -ErrorAction Ignore
}

Copy-Item "*.resource.json" $target -Force -ErrorAction Ignore
Copy-Item "*.dsc.resource.json" $target -Force -ErrorAction Ignore
Copy-Item "*.resource.ps1" $target -Force -ErrorAction Ignore
Copy-Item "*.command.json" $target -Force -ErrorAction Ignore

Expand Down Expand Up @@ -174,7 +174,7 @@ if (!$found) {

if ($Test) {
$failed = $false

$FullyQualifiedName = @{ModuleName="PSDesiredStateConfiguration";ModuleVersion="2.0.7"}
if (-not(Get-Module -ListAvailable -FullyQualifiedName $FullyQualifiedName))
{ "Installing module PSDesiredStateConfiguration 2.0.7"
Expand Down
2 changes: 1 addition & 1 deletion test_group_resource/tests/provider.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe 'Resource provider tests' {
'@
$oldPath = $env:PATH
try {
Set-Content -Path testdrive:/invalid.resource.json -Value $invalid_manifest
Set-Content -Path testdrive:/invalid.dsc.resource.json -Value $invalid_manifest
$env:PATH += [System.IO.Path]::PathSeparator + (Resolve-Path (Resolve-Path $TestDrive -Relative))

$out = dsc resource list *invalid* 2>&1
Expand Down

0 comments on commit d2e2e05

Please sign in to comment.