1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
summary: Check that download caching works
details: |
Check that snap downloads are cached such that repeated installs don't
fetch the same snap from the store.
environment:
# on core systems, the test was seen to misbehave when memory limit is set
SNAPD_NO_MEMORY_LIMIT: 1
execute: |
echo "Install and remove the test-snapd-sh snap"
snap install test-snapd-sh
snap remove --purge test-snapd-sh
echo "Re-install the test-snapd-sh snap"
snap install test-snapd-sh
echo "Check the cache was used for the second install"
"$TESTSTOOLS"/journal-state match-log 'using cache for .*/test-snapd-sh.*\.snap' -u snapd
|