Merge ~kzapalowicz/snappy-hwe-snaps/+git/udisks2:fix/adopt-new-aliases into ~snappy-hwe-team/snappy-hwe-snaps/+git/udisks2:master

Proposed by Konrad Zapałowicz
Status: Merged
Approved by: Simon Fels
Approved revision: 57483a4a69e7249b5feca9b8a9098ccadfdbab9d
Merged at revision: 3315fae0907f98e8f460069f103c90586d72e42d
Proposed branch: ~kzapalowicz/snappy-hwe-snaps/+git/udisks2:fix/adopt-new-aliases
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/udisks2:master
Diff against target: 52 lines (+12/-11)
3 files modified
snapcraft.yaml (+2/-0)
tests/lib/utilities.sh (+8/-0)
tests/main/aliases/task.yaml (+2/-11)
Reviewer Review Type Date Requested Status
System Enablement Bot continuous-integration Approve
Simon Fels Approve
Review via email: mp+323980@code.launchpad.net

Description of the change

Adopt for new aliases coming with 2.25

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Simon Fels (morphis) wrote :

LGTM but not sure why tests are failing

review: Approve
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/snapcraft.yaml b/snapcraft.yaml
index c04a78b..5ad9f43 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -14,6 +14,8 @@ apps:
14 udisksctl:14 udisksctl:
15 command: bin/udisksctl.sh15 command: bin/udisksctl.sh
16 plugs: [client]16 plugs: [client]
17 # NOTE: This is depreciated with snapd 2.25 however it needs to stay to
18 # guarantee that all clients are updated correctly.
17 aliases: [udisksctl]19 aliases: [udisksctl]
18 udisksd:20 udisksd:
19 daemon: simple21 daemon: simple
diff --git a/tests/lib/utilities.sh b/tests/lib/utilities.sh
index 12f7d15..a0c8692 100644
--- a/tests/lib/utilities.sh
+++ b/tests/lib/utilities.sh
@@ -12,6 +12,14 @@ snap_install() {
12 # snap.12 # snap.
13 snap install $name13 snap install $name
14 snap install --dangerous $PROJECT_PATH/$name*_amd64.snap14 snap install --dangerous $PROJECT_PATH/$name*_amd64.snap
15
16 # Setup all necessary aliases
17 snapd_version=$(snap version | awk '/^snapd / {print $2; exit}')
18 target=$SNAP_NAME.udisksctl
19 if dpkg --compare-versions $snapd_version lt 2.25 ; then
20 target=$SNAP_NAME
21 fi
22 snap alias $target udisksctl
15 fi23 fi
16}24}
1725
diff --git a/tests/main/aliases/task.yaml b/tests/main/aliases/task.yaml
index 96f7813..1aebee5 100644
--- a/tests/main/aliases/task.yaml
+++ b/tests/main/aliases/task.yaml
@@ -1,13 +1,4 @@
1summary: Verify aliases provided by the snap are correctly enabled1summary: Verify aliases are set up
22
3execute: |3execute: |
4 # FIXME: Aliases should be not in place automatically unless we4 test -x /snap/bin/udisksctl
5 # have them approved from the store in our snap-declaration assertion.
6 test ! -e /snap/bin/udisksctl
7
8 snap alias udisks2 udisksctl
9
10 test -e /snap/bin/udisksctl
11
12 # Verify the alias works without any problems
13 /snap/bin/udisksctl status

Subscribers

People subscribed via source and target branches