Set locale correctly on Linux CI (#16073)

This commit is contained in:
Dongbo Wang 2021-09-09 13:59:31 -07:00 committed by GitHub
parent 024f409763
commit 74e283c4f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 9 deletions

View file

@ -122,9 +122,6 @@ stages:
condition: succeededOrFailed()
- pwsh: |
Import-Module .\build.psm1
Set-CorrectLocale
Import-Module .\tools\ci.psm1
Restore-PSOptions -PSOptionsPath '$(System.ArtifactsDirectory)\build\psoptions.json'
Invoke-CITest -Purpose UnelevatedPesterTests -TagSet Others
@ -132,9 +129,6 @@ stages:
condition: succeededOrFailed()
- pwsh: |
Import-Module .\build.psm1
Set-CorrectLocale
Import-Module .\tools\ci.psm1
Restore-PSOptions -PSOptionsPath '$(System.ArtifactsDirectory)\build\psoptions.json'
Invoke-CITest -Purpose ElevatedPesterTests -TagSet Others

View file

@ -63,9 +63,6 @@ jobs:
continueOnError: true
- pwsh: |
Import-Module .\build.psm1 -Force
Set-CorrectLocale
Import-Module .\tools\ci.psm1
Restore-PSOptions -PSOptionsPath '$(System.ArtifactsDirectory)\build\psoptions.json'
$options = (Get-PSOptions)

View file

@ -215,6 +215,9 @@ function Invoke-CITest
[string] $TagSet
)
# Set locale correctly for Linux CIs
Set-CorrectLocale
# Pester doesn't allow Invoke-Pester -TagAll@('CI', 'RequireAdminOnWindows') currently
# https://github.com/pester/Pester/issues/608
# To work-around it, we exlude all categories, but 'CI' from the list