Certain snapd tests don't take into account system locale differences
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Low
|
Unassigned |
Bug Description
The following tests fail if the host Linux is configured to certain locales (e.g. en_GB):
- cmd_list_
- cmd_login_
- cmd_reboot_
- cmd_recovery_
- cmd_snapshot_
- cmd_whoami_
- cmd_whoami_
These tests capture STDOUT and compare the results to the expected strings. The tests assume that in all locales the captured output looks the same, which is not. That is why for most locales it will pass, but for some it will fail.
Current workaround is to set an environment variable `LANG` to value `C.UTF-8`. This sets a locale for which the aforementioned tests won't fail.
Changed in snapd: | |
importance: | Undecided → Low |
status: | New → Triaged |
Once this issue gets fixed the HACKING.md of snapd repo should be updated (see https:/ /github. com/snapcore/ snapd/blob/ master/ HACKING. md). It's currently describes how to workaround this problem.