fix environment setup of klanguagename test
ClosedPublic

Authored by sitter on Jan 11 2019, 10:27 AM.

Details

Summary
  • use correct env vars LANG and LANGUAGE
  • as an additional safety-net explicitly set QLocale default to english

(the latter kinda overrides the former, but better save than sorry since it
has no adverse effects to do both)

this should make tests pass regardless of potentially weird env states some
CIs may have

Fixes bug introduced in D10446

Test Plan

test passes on kubuntu ci. my theory is that QLocale picked the default before the env was set up and therefore used C instead of en thus bypassing the en=>en_US coercion

Diff Detail

Repository
R265 KConfigWidgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Jan 11 2019, 10:27 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 11 2019, 10:27 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
sitter requested review of this revision.Jan 11 2019, 10:27 AM
This revision is now accepted and ready to land.Jan 11 2019, 10:42 AM
sitter edited the summary of this revision. (Show Details)Jan 14 2019, 11:13 AM
This revision was automatically updated to reflect the committed changes.