mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
21 lines
657 B
YAML
21 lines
657 B
YAML
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
|