Set locale correctly on Linux CI (#16073)
This commit is contained in:
parent
024f409763
commit
74e283c4f9
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue