Cleanup the tests environment to avoid dirty tests directory

Some tests are failing because there are some directories which contain
snaps before the execution.

This is mostly for the first test executed, which contained many snaps
and directories created while the test suite is prepared.

The change cleans correctly the suite preaparation and moved the extra
tests directory to /tmp for the same raeson.
This commit is contained in:
Sergio Cazzolato
2023-01-09 13:27:04 -03:00
parent c0c0c19157
commit f62601a27e
4 changed files with 13 additions and 12 deletions
@@ -14,7 +14,7 @@ execute: |
if [ "$VERSION" -eq 16 ]; then
CHANNEL=latest
fi
rm -rf pc-kernel
snap download --basename=pc-kernel --channel="$CHANNEL/edge" pc-kernel
unsquashfs -d pc-kernel pc-kernel.snap
HOOKS_D=pc-kernel/meta/hooks/