Merge ~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager:revert-manual-conn into ~snappy-hwe-team/snappy-hwe-snaps/+git/network-manager:snap-20

Proposed by Alfonso Sanchez-Beato
Status: Merged
Approved by: Alfonso Sanchez-Beato
Approved revision: c759d6ae6420f687a445a393406af52835c30e09
Merged at revision: c5a47815f0e12210c46f592acec49e1e6266f7aa
Proposed branch: ~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager:revert-manual-conn
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/network-manager:snap-20
Diff against target: 30 lines (+4/-9)
1 file modified
tests/lib/utilities.sh (+4/-9)
Reviewer Review Type Date Requested Status
Tony Espy Approve
System Enablement Bot continuous-integration Approve
Review via email: mp+399588@code.launchpad.net

Commit message

Revert "spread: fix tests to work with epochs"

This reverts commit bd2e479614ec595050aaf4f0f63f6aec12adc095.
The change was needed so tests could run after changing the
epoch. However, this caused races as connections happen after the snap
is installed, and NM starts without all the permissions it
needs. Revert this back as now we have an epoch 1 snap already
published in 20/beta and we can install it without errors.

Description of the change

Revert "spread: fix tests to work with epochs"

This reverts commit bd2e479614ec595050aaf4f0f63f6aec12adc095.
The change was needed so tests could run after changing the
epoch. However, this caused races as connections happen after the snap
is installed, and NM starts without all the permissions it
needs. Revert this back as now we have an epoch 1 snap already
published in 20/beta and we can install it without errors.

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tony Espy (awe) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/tests/lib/utilities.sh b/tests/lib/utilities.sh
index b068085..ce6ca0e 100644
--- a/tests/lib/utilities.sh
+++ b/tests/lib/utilities.sh
@@ -1,13 +1,5 @@
1#!/bin/bash1#!/bin/bash
22
3snap_connect_ifaces() {
4 snap connect network-manager:firewall-control :firewall-control
5 snap connect network-manager:network :network
6 snap connect network-manager:network-setup-observe :network-setup-observe
7 snap connect network-manager:ppp :ppp
8 snap connect network-manager:nmcli network-manager:service
9}
10
11snap_install() {3snap_install() {
12 name=$14 name=$1
13 if [ -n "$SNAP_CHANNEL" ] ; then5 if [ -n "$SNAP_CHANNEL" ] ; then
@@ -16,8 +8,11 @@ snap_install() {
16 snap install --$SNAP_CHANNEL $name8 snap install --$SNAP_CHANNEL $name
17 fi9 fi
18 else10 else
11 # Need first install from store to get all necessary assertions into
12 # place. Second local install will then bring in our locally built
13 # snap.
14 snap install $name $2
19 snap install --dangerous $PROJECT_PATH/$name*_amd64.snap15 snap install --dangerous $PROJECT_PATH/$name*_amd64.snap
20 snap_connect_ifaces
21 fi16 fi
22}17}
2318

Subscribers

People subscribed via source and target branches