diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f0fea8f..48a95cf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -62,7 +62,6 @@ jobs: working-directory: ./test/e2e/${{ matrix.os }} shell: pwsh run: | - Install-Module -Name Pester -Force Invoke-Pester ../test.ps1 - name: E2E test (bash) diff --git a/test/e2e/test.ps1 b/test/e2e/test.ps1 index 60efa76..89298e9 100644 --- a/test/e2e/test.ps1 +++ b/test/e2e/test.ps1 @@ -4,7 +4,7 @@ $tests = Get-ChildItem '0*' | ForEach-Object { $name=$_.Name; $inputFile="$name/input"; $outputFile="$name/output"; - $arguments=(Get-Content "$name/commandline"); + $arguments=(Get-Content -Encoding utf8 "$name/commandline"); @{ Name = $name; @@ -16,7 +16,7 @@ $tests = Get-ChildItem '0*' | ForEach-Object { Describe 'sel on PowerShell' { It "cat | sel Returns ()" -ForEach $tests { - $expected = Get-Content $outputFile; - Invoke-Expression "Get-Content $inputFile | ../../../dist/sel $arguments" | Should -Be $expected; + $expected = Get-Content -Encoding utf8 $outputFile; + Invoke-Expression "Get-Content -Encoding utf8 $inputFile | ../../../dist/sel $arguments" | Should -Be $expected; } }