Updated runtests to look for locale files

This commit is contained in:
Carlos Nihelton 2021-11-09 18:10:44 -03:00
parent 409ac4157a
commit 7eee081405
1 changed files with 8 additions and 0 deletions

View File

@ -78,6 +78,14 @@ validate () {
echo "user not assigned with the expected group sudo"
exit 1
fi
if [ -z "$( ls .subiquity/var/cache/apt/archives/)" ] ; then
echo "expected not empty directory var/cache/apt/archives/"
exit 1
fi
if [ -z "$( diff -Nup .subiquity/etc/locale.gen .subiquity/etc/locale.gen-)" ] ; then
echo "expected changes in etc/locale.gen"
exit 1
fi
fi
else
echo "W: Unknown validation mode: ${mode}"