diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f31872f213..93b24f329b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Init and Test shell: powershell run: | - $env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')" + $env:SCOOP_HOME="$(Convert-Path '.\scoop_core')" .\scoop_core\test\bin\init.ps1 .\my_bucket\bin\test.ps1 test_pwsh: @@ -43,6 +43,6 @@ jobs: - name: Init and Test shell: pwsh run: | - $env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')" + $env:SCOOP_HOME="$(Convert-Path '.\scoop_core')" .\scoop_core\test\bin\init.ps1 .\my_bucket\bin\test.ps1 diff --git a/bin/test.ps1 b/bin/test.ps1 index 6a741d9bad..44c959827d 100644 --- a/bin/test.ps1 +++ b/bin/test.ps1 @@ -1,5 +1,5 @@ #Requires -Modules @{ ModuleName = 'Pester'; MaximumVersion = '4.99' } -if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } -$result = Invoke-Pester "$psscriptroot/.." -PassThru +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) } +$result = Invoke-Pester "$PSScriptRoot\.." -PassThru exit $result.FailedCount