File: task.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (20 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (3)
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