File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Describe 'Discover extension tests' {
5
5
BeforeAll {
6
6
$oldPath = $env: PATH
7
7
$toolPath = Resolve-Path - Path " $PSScriptRoot /../../extensions/test/discover"
8
- $env: PATH = $toolPath + [System.IO.Path ]::PathSeparator + $oldPath
8
+ $env: PATH = " $toolPath " + [System.IO.Path ]::PathSeparator + $oldPath
9
9
}
10
10
11
11
AfterAll {
@@ -74,10 +74,10 @@ Describe 'Discover extension tests' {
74
74
Set-Content - Path " $TestDrive /test.dsc.extension.json" - Value $extension_json
75
75
Copy-Item - Path " $toolPath /discover.ps1" - Destination $TestDrive | Out-Null
76
76
Copy-Item - Path " $toolPath /resources" - Destination $TestDrive - Recurse | Out-Null
77
- $env: DSC_RESOURCE_PATH = " $TestDrive$separator$oldPath "
77
+ $env: DSC_RESOURCE_PATH = " $TestDrive " + [ System.IO.Path ]::PathSeparator + ( Split-Path ( Get-Command pwsh).Source - Parent)
78
78
try {
79
79
$out = dsc extension list | ConvertFrom-Json
80
- $out.Count | Should - Be 1
80
+ $out.Count | Should - Be 1 - Because ( $out | Out-String )
81
81
$out.type | Should - Be ' Test/DiscoverRelative'
82
82
$out = dsc resource list 2> $TestDrive / error.log
83
83
write-verbose - verbose (Get-Content - Path " $TestDrive /error.log" - Raw)
You can’t perform that action at this time.
0 commit comments