Script being used to detect which snaps can be moved to
for snap in $(ls tests/lib/snaps); do
count=0
last=
for test in $(find tests/ -name task.yaml); do
if $(grep -q $snap $test); then
count=$((count+1))
last=$test
fi
done
echo "$snap -> $count times"
if [ $count = 1 ]; then
echo "mv tests/lib/snaps/$snap $(dirname $last)"
fi
done
Blacklist systems in which the framebuffer device node does not appear when
running a cloud image in GCE.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
This is done in the tests which are checking the interfaces information
in order to make them more robusts, making the test independent of other
plug:slots declared such it is happening in gadgets.
This change includes:
. Remove all the checks that are done after a connection and
disconnection (this is already checked as part of the snap_connect and
snap_disconnect tests).
. install_local function used to pack and install local snaps
. Remove not needed echo
. Change the check of interfaces default behaviour for the
autoconnection to support the scenario when there are other snaps also
connected to the interface (that happens when testing caracalla gadget)
. Add new lines between task tags