Skip to content

Commit 72c8c9b

Browse files
daxian-dbwadityapatwardhan
authored andcommitted
Set locale correctly on Linux CI (#16073)
1 parent c140137 commit 72c8c9b

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

.vsts-ci/linux-daily.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,13 @@ stages:
122122
condition: succeededOrFailed()
123123
124124
- pwsh: |
125-
Import-Module .\build.psm1
126-
Set-CorrectLocale
127-
128125
Import-Module .\tools\ci.psm1
129126
Restore-PSOptions -PSOptionsPath '$(System.ArtifactsDirectory)\build\psoptions.json'
130127
Invoke-CITest -Purpose UnelevatedPesterTests -TagSet Others
131128
displayName: Test - UnelevatedPesterTests - Others
132129
condition: succeededOrFailed()
133130
134131
- pwsh: |
135-
Import-Module .\build.psm1
136-
Set-CorrectLocale
137-
138132
Import-Module .\tools\ci.psm1
139133
Restore-PSOptions -PSOptionsPath '$(System.ArtifactsDirectory)\build\psoptions.json'
140134
Invoke-CITest -Purpose ElevatedPesterTests -TagSet Others

.vsts-ci/templates/nix-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ jobs:
6363
continueOnError: true
6464
6565
- pwsh: |
66-
Import-Module .\build.psm1 -Force
67-
Set-CorrectLocale
68-
6966
Import-Module .\tools\ci.psm1
7067
Restore-PSOptions -PSOptionsPath '$(System.ArtifactsDirectory)\build\psoptions.json'
7168
$options = (Get-PSOptions)

tools/ci.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ function Invoke-CITest
215215
[string] $TagSet
216216
)
217217

218+
# Set locale correctly for Linux CIs
219+
Set-CorrectLocale
220+
218221
# Pester doesn't allow Invoke-Pester -TagAll@('CI', 'RequireAdminOnWindows') currently
219222
# https://github.com/pester/Pester/issues/608
220223
# To work-around it, we exlude all categories, but 'CI' from the list

0 commit comments

Comments
 (0)