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 (27 lines) | stat: -rw-r--r-- 930 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
21
22
23
24
25
26
27
summary: Check that the refresh command uses deltas

details: Check that the refresh command uses deltas when downloading a snap.

environment:
    SNAP_NAME: test-snapd-delta-refresh
    SNAP_VERSION_PATTERN: \d+\.\d+\+fake1
    # on core systems, the test was seen to misbehave when memory limit is set
    SNAPD_NO_MEMORY_LIMIT: 1

prepare: |
    # The store currently only calculates deltas in the same channel,
    # so we need to setup the test first with two edge uploads, then
    # set on of the edge snaps to beta. This was done with r3 -> r5.
    #
    # We have edge as r3, beta as r5 and the store has a delta for
    # r3 -> r5b
    #
    echo "Given a snap is installed"
    snap install --edge "$SNAP_NAME"

execute: |
    echo "When the snap is refreshed"
    snap refresh --beta "$SNAP_NAME"

    echo "Then deltas are successfully applied"
    "$TESTSTOOLS"/journal-state match-log "Successfully applied delta"