Merge pull request #1155 from ogayot/fix-run-tests
Fix language packs detection in integration tests
This commit is contained in:
commit
2a37cf5efb
|
@ -89,8 +89,9 @@ validate () {
|
||||||
echo "user not assigned with the expected group sudo"
|
echo "user not assigned with the expected group sudo"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
lang="$(grep -Eo 'LANG="([^.@ _]+)' .subiquity/etc/default/locale | cut -d \" -f 2)"
|
# Extract value of the LANG variable from etc/default/locale (with or without quotes)
|
||||||
if [ -z "$( ls .subiquity/var/cache/apt/archives/) | grep $lang" ] ; then
|
lang="$(grep -Eo 'LANG=([^.@ _]+)' .subiquity/etc/default/locale | cut -d= -f 2- | cut -d\" -f 2-)"
|
||||||
|
if ! ls .subiquity/var/cache/apt/archives/ | grep --fixed-strings --quiet -- "$lang"; then
|
||||||
echo "expected $lang language packs in directory var/cache/apt/archives/"
|
echo "expected $lang language packs in directory var/cache/apt/archives/"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue