Skip to content

Commit

Permalink
tests: use corresponding arm revision for test
Browse files Browse the repository at this point in the history
  • Loading branch information
maykathm committed Dec 19, 2024
1 parent 592c3bc commit b29add5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/core/snapd-refresh-undo/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ details: |
# UC16 still uses the core snap rather than the snapd snap, so disable this test
# for UC16
# The test uses a AMD revision of snapd, so disable this test for ARM
systems: [-ubuntu-core-16-*,-ubuntu-*-arm-*]
systems: [-ubuntu-core-16-*]

environment:
SNAP_NAME_BAD: test-snapd-service-v2-bad
Expand All @@ -29,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 b29add5

Please sign in to comment.