diff options
| author | John R. Lenton <jlenton@gmail.com> | 2016-09-14 13:54:44 +0100 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2016-09-14 13:54:44 +0100 |
| commit | 5a098a5862d64a426bd212dda97ac5385498c757 (patch) | |
| tree | ef7c5ba5f277752539914861e605578697290c4f /tests | |
| parent | 9c0a8683cae28b3fc04ff0afed0c50ac093ab245 (diff) | |
also default LANGUAGE, and write /etc/default/locale using these in the interfaces-locale-control test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/main/interfaces-locale-control/task.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/main/interfaces-locale-control/task.yaml b/tests/main/interfaces-locale-control/task.yaml index e0542bf516..95a6e43e48 100644 --- a/tests/main/interfaces-locale-control/task.yaml +++ b/tests/main/interfaces-locale-control/task.yaml @@ -16,7 +16,11 @@ prepare: | echo "Given a snap declaring a plug on the locale-control interface is installed" snapbuild $TESTSLIB/snaps/locale-control-consumer . snap install --dangerous locale-control-consumer_1.0_all.snap - cp /etc/default/locale locale.back + mv /etc/default/locale locale.back + cat > /etc/default/locale <<EOF + LANG="$LANG" + LANGUAGE="$LANGUAGE" + EOF restore: | rm -f locale-control-consumer_1.0_all.snap locale-read.error locale-write.error |
