mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user