Skip to content

Commit

Permalink
tests: correct snapd revision number in snapd-refresh-undo for ARM (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maykathm authored Dec 19, 2024
1 parent b825692 commit fecd0a6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/core/snapd-refresh-undo/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@ execute: |
# store a copy of the built snapd
cp /var/lib/snapd/snaps/snapd_x1.snap ./snapd.snap
revision=""
if os.query is_arm; then
revision=18363
else
revision=18357
fi
# refresh to a snapd prior to snapd snap, this one is chosen from
# a customer case where they were seeing issues with snapd reverting
snap refresh snapd --amend --revision=18357
snap list | MATCH "snapd.*18357"
snap refresh snapd --amend --revision="$revision"
snap list | MATCH "snapd.*$revision"
# perform a refresh to the current snapd, this will fail, do it in a way
# that will make snapd revert
Expand Down

0 comments on commit fecd0a6

Please sign in to comment.