Merge ~alfonsosanchezbeato/snappy-hwe-snaps/+git/modem-manager:test-on-uc20 into ~snappy-hwe-team/snappy-hwe-snaps/+git/modem-manager:snap-20
- Git
- lp:~alfonsosanchezbeato/snappy-hwe-snaps/+git/modem-manager
- test-on-uc20
- Merge into snap-20
Status: | Merged |
---|---|
Approved by: | Alfonso Sanchez-Beato |
Approved revision: | 6a1f448ffee9268e75092c7b6718939f6de5314f |
Merged at revision: | 7e5f1f1a7199f32dc8435e94459a61f31ec94559 |
Proposed branch: | ~alfonsosanchezbeato/snappy-hwe-snaps/+git/modem-manager:test-on-uc20 |
Merge into: | ~snappy-hwe-team/snappy-hwe-snaps/+git/modem-manager:snap-20 |
Diff against target: |
352 lines (+85/-110) 8 files modified
run-tests.sh (+50/-32) spread.yaml (+4/-2) tests/lib/prepare-all.sh (+3/-41) tests/lib/prepare.sh (+8/-13) tests/lib/restore-each.sh (+5/-11) tests/lib/snap-names.sh (+1/-1) tests/lib/utilities.sh (+9/-9) tests/main/network-manager-autoconn/task.yaml (+5/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
System Enablement Bot | continuous-integration | Approve | |
Review via email: mp+387327@code.launchpad.net |
Commit message
tests: adapt to run on UC20
Description of the change
tests: adapt to run on UC20
System Enablement Bot (system-enablement-ci-bot) wrote : | # |
System Enablement Bot (system-enablement-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:6a1f448ffee
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | diff --git a/run-tests.sh b/run-tests.sh | |||
2 | index 04c3b9f..7f827b6 100755 | |||
3 | --- a/run-tests.sh | |||
4 | +++ b/run-tests.sh | |||
5 | @@ -1,4 +1,4 @@ | |||
7 | 1 | #!/bin/sh | 1 | #!/bin/bash |
8 | 2 | # | 2 | # |
9 | 3 | # Copyright (C) 2016 Canonical Ltd | 3 | # Copyright (C) 2016 Canonical Ltd |
10 | 4 | # | 4 | # |
11 | @@ -17,63 +17,81 @@ | |||
12 | 17 | set -e | 17 | set -e |
13 | 18 | 18 | ||
14 | 19 | TESTS_EXTRAS_URL="https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/stack-snaps-tools" | 19 | TESTS_EXTRAS_URL="https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/stack-snaps-tools" |
16 | 20 | TESTS_EXTRAS_PATH="stack-snaps-tools" | 20 | TESTS_EXTRAS_PATH="tests-extras" |
17 | 21 | 21 | ||
18 | 22 | # Display help. | ||
19 | 23 | # This has to be in sync with the tests-extras/test-runner.sh script | ||
20 | 24 | # functionalities as the parameters to this one are passed directly there | ||
21 | 25 | # this function will quit the script because of the 'exec' keyword | ||
22 | 26 | show_help() { | 22 | show_help() { |
23 | 27 | exec cat <<'EOF' | 23 | exec cat <<'EOF' |
24 | 28 | Usage: run-tests.sh [OPTIONS] | 24 | Usage: run-tests.sh [OPTIONS] |
25 | 29 | 25 | ||
26 | 30 | This is fetch & forget script and what it does is to fetch the | 26 | This is fetch & forget script and what it does is to fetch the |
28 | 31 | tests-extras repository and execute the run-tests.sh script from | 27 | stack-snaps-tools repository and execute the run-tests.sh script from |
29 | 32 | there passing arguments as-is. | 28 | there passing arguments as-is. |
30 | 33 | 29 | ||
38 | 34 | optional arguments: | 30 | When you see this message you don't have the tests-extras folder |
39 | 35 | --help Show this help message and exit | 31 | successfully populated in your workspace yet. Please rerun without |
40 | 36 | --channel Select another channel to build the base image from (default: stable) | 32 | specifying --help to proceed with the initial clone of the git repository. |
34 | 37 | --snap Extra snap to install | ||
35 | 38 | --debug Enable verbose debugging output | ||
36 | 39 | --test-from-channel Pull network-manager snap from the specified channel instead of building it from source | ||
37 | 40 | --force-new-image Force generating a new image used for testing | ||
41 | 41 | EOF | 33 | EOF |
42 | 42 | } | 34 | } |
43 | 43 | 35 | ||
45 | 44 | # Clone the tests-extras repository | 36 | # Clone the stack-snaps-tools repository |
46 | 45 | clone_tests_extras() { | 37 | clone_tests_extras() { |
53 | 46 | echo "INFO: Fetching tests-extras scripts into $TESTS_EXTRAS_PATH ..." | 38 | echo "INFO: Fetching stack-snaps-tools scripts into $TESTS_EXTRAS_PATH ..." |
54 | 47 | git clone -b master $TESTS_EXTRAS_URL $TESTS_EXTRAS_PATH >/dev/null 2>&1 | 39 | if ! git clone -b master $TESTS_EXTRAS_URL $TESTS_EXTRAS_PATH >/dev/null 2>&1; then |
55 | 48 | if [ $? -ne 0 ]; then | 40 | echo "ERROR: Failed to fetch the $TESTS_EXTRAS_URL repo, exiting.." |
56 | 49 | echo "ERROR: Failed to fetch the $TESTS_EXTRAS_URL repo, exiting.." | 41 | exit 1 |
57 | 50 | exit 1 | 42 | fi |
52 | 51 | fi | ||
58 | 52 | } | 43 | } |
59 | 53 | 44 | ||
61 | 54 | # Make sure the already cloned tests-extras repository is in a known and update | 45 | # Make sure the already cloned stack-snaps-tools repository is in a known and update |
62 | 55 | # state before it is going to be used. | 46 | # state before it is going to be used. |
63 | 56 | restore_and_update_tests_extras() { | 47 | restore_and_update_tests_extras() { |
67 | 57 | echo "INFO: Restoring and updating $TESTS_EXTRAS_PATH" | 48 | echo "INFO: Restoring and updating $TESTS_EXTRAS_PATH" |
68 | 58 | cd $TESTS_EXTRAS_PATH && git reset --hard && git clean -dfx && git pull | 49 | cd $TESTS_EXTRAS_PATH && git reset --hard && git clean -dfx && git pull |
69 | 59 | cd - | 50 | cd - |
70 | 60 | } | 51 | } |
71 | 61 | 52 | ||
72 | 62 | # ============================================================================== | 53 | # ============================================================================== |
74 | 63 | # This is fetch & forget script and what it does is to fetch the tests-extras | 54 | # This is fetch & forget script and what it does is to fetch the stack-snaps-tools |
75 | 64 | # repo and execute the run-tests.sh script from there passing arguments as-is. | 55 | # repo and execute the run-tests.sh script from there passing arguments as-is. |
76 | 65 | # | 56 | # |
78 | 66 | # The tests-extras repository ends up checked out in the snap tree but as a | 57 | # The stack-snaps-tools repository ends up checked out in the snap tree but as a |
79 | 67 | # hidden directory which is re-used since then. | 58 | # hidden directory which is re-used since then. |
80 | 68 | 59 | ||
83 | 69 | # Display help w/o fetching anything and exit | 60 | # Find snap to use in the tests |
84 | 70 | [ "$1" = "--help" ] && show_help | 61 | snaps=$(find . -maxdepth 1 -type f -name \ |
85 | 62 | "*_*_$(dpkg-architecture -q DEB_HOST_ARCH).snap") | ||
86 | 63 | while read -r snap_file; do | ||
87 | 64 | if [ -n "$snap" ]; then | ||
88 | 65 | printf "More than one snap revision in the folder\n" | ||
89 | 66 | exit 1 | ||
90 | 67 | fi | ||
91 | 68 | snap=$PWD/${snap_file#*/} | ||
92 | 69 | done < <(printf "%s\n" "$snaps") | ||
93 | 70 | |||
94 | 71 | [ ! -d "$TESTS_EXTRAS_PATH" ] && [ "$1" = "--help" ] && show_help | ||
95 | 71 | 72 | ||
96 | 72 | if [ -d "$TESTS_EXTRAS_PATH" ]; then | 73 | if [ -d "$TESTS_EXTRAS_PATH" ]; then |
98 | 73 | restore_and_update_tests_extras | 74 | restore_and_update_tests_extras |
99 | 74 | else | 75 | else |
101 | 75 | clone_tests_extras | 76 | clone_tests_extras |
102 | 77 | fi | ||
103 | 78 | |||
104 | 79 | # Any project-specific options for test-runner should be specified in | ||
105 | 80 | # .tests_config under EXTRA_ARGS | ||
106 | 81 | if [ -f ".tests_config" ]; then | ||
107 | 82 | # shellcheck disable=SC1091 | ||
108 | 83 | . .tests_config | ||
109 | 76 | fi | 84 | fi |
110 | 77 | 85 | ||
111 | 86 | # Get backends | ||
112 | 87 | backends="--backends=" | ||
113 | 88 | separator="" | ||
114 | 89 | while read -r be; do | ||
115 | 90 | backends=$backends$separator${be##*.} | ||
116 | 91 | separator=, | ||
117 | 92 | done < <(yq r spread.yaml --printMode p 'backends.qemu.systems[*].*') | ||
118 | 93 | |||
119 | 78 | echo "INFO: Executing tests runner" | 94 | echo "INFO: Executing tests runner" |
121 | 79 | cd $TESTS_EXTRAS_PATH && ./tests-runner.sh "$@" | 95 | # shellcheck disable=SC2086 |
122 | 96 | cd $TESTS_EXTRAS_PATH && | ||
123 | 97 | ./tests-runner.sh "$@" --snap="$snap" "$backends" $EXTRA_ARGS | ||
124 | diff --git a/spread.yaml b/spread.yaml | |||
125 | index 1368084..9a775ca 100644 | |||
126 | --- a/spread.yaml | |||
127 | +++ b/spread.yaml | |||
128 | @@ -28,8 +28,10 @@ environment: | |||
129 | 28 | 28 | ||
130 | 29 | backends: | 29 | backends: |
131 | 30 | qemu: | 30 | qemu: |
132 | 31 | memory: 4G | ||
133 | 31 | systems: | 32 | systems: |
135 | 32 | - ubuntu-core-16: | 33 | - ubuntu-core-20: |
136 | 34 | bios: /usr/share/OVMF/OVMF_CODE.fd | ||
137 | 33 | username: test | 35 | username: test |
138 | 34 | password: test | 36 | password: test |
139 | 35 | 37 | ||
140 | @@ -55,7 +57,7 @@ suites: | |||
141 | 55 | tests/main/: | 57 | tests/main/: |
142 | 56 | summary: Full-system tests for ModemManager | 58 | summary: Full-system tests for ModemManager |
143 | 57 | systems: | 59 | systems: |
145 | 58 | - ubuntu-core-16 | 60 | - ubuntu-core-20 |
146 | 59 | prepare: | | 61 | prepare: | |
147 | 60 | . $TESTSLIB/prepare.sh | 62 | . $TESTSLIB/prepare.sh |
148 | 61 | restore-each: | | 63 | restore-each: | |
149 | diff --git a/tests/lib/prepare-all.sh b/tests/lib/prepare-all.sh | |||
150 | index 979e57d..08ae20a 100644 | |||
151 | --- a/tests/lib/prepare-all.sh | |||
152 | +++ b/tests/lib/prepare-all.sh | |||
153 | @@ -1,42 +1,4 @@ | |||
155 | 1 | #!/bin/sh | 1 | #!/bin/bash -x |
156 | 2 | 2 | ||
197 | 3 | # We don't have to build a snap when we should use one from a channel | 3 | # Nothing to do here for the moment |
198 | 4 | if [ -n "$SNAP_CHANNEL" ] ; then | 4 | exit 0 |
159 | 5 | exit 0 | ||
160 | 6 | fi | ||
161 | 7 | |||
162 | 8 | # If there is a snap prebuilt for us, lets take that one to speed things up | ||
163 | 9 | if [ -e $PROJECT_PATH/${SNAP_NAME}_*_${SNAP_ARCH}.snap ] ; then | ||
164 | 10 | exit 0 | ||
165 | 11 | fi | ||
166 | 12 | |||
167 | 13 | |||
168 | 14 | # Setup classic snap and build the snap in there | ||
169 | 15 | snap install --devmode --beta classic | ||
170 | 16 | cat <<-EOF > /home/test/build-snap.sh | ||
171 | 17 | #!/bin/sh | ||
172 | 18 | set -ex | ||
173 | 19 | |||
174 | 20 | export DEBIAN_FRONTEND=noninteractive | ||
175 | 21 | |||
176 | 22 | # FIXME: Enable propose for now until problems with conflicting systemd | ||
177 | 23 | # packages between the Ubuntu Core image ppa and the archive are fixed. | ||
178 | 24 | echo "deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main universe" > /etc/apt/sources.list.d/ubuntu-proposed.list | ||
179 | 25 | echo "deb http://ppa.launchpad.net/snappy-dev/image/ubuntu xenial main" > /etc/apt/sources.list.d/ubuntu-image-ppa.list | ||
180 | 26 | |||
181 | 27 | # Ensure we have the latest updates installed as the core snap | ||
182 | 28 | # may be a bit out of date. | ||
183 | 29 | apt update | ||
184 | 30 | apt -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' full-upgrade -y --force-yes | ||
185 | 31 | |||
186 | 32 | apt install -y --force-yes snapcraft | ||
187 | 33 | cd $PROJECT_PATH | ||
188 | 34 | snapcraft clean | ||
189 | 35 | snapcraft | ||
190 | 36 | EOF | ||
191 | 37 | chmod +x /home/test/build-snap.sh | ||
192 | 38 | sudo classic /home/test/build-snap.sh | ||
193 | 39 | snap remove classic | ||
194 | 40 | |||
195 | 41 | # Make sure we have a snap build | ||
196 | 42 | test -e $PROJECT_PATH/${SNAP_NAME}_*_${SNAP_ARCH}.snap | ||
199 | diff --git a/tests/lib/prepare.sh b/tests/lib/prepare.sh | |||
200 | index 185bacb..cdf9213 100644 | |||
201 | --- a/tests/lib/prepare.sh | |||
202 | +++ b/tests/lib/prepare.sh | |||
203 | @@ -1,6 +1,7 @@ | |||
205 | 1 | #!/bin/sh | 1 | #!/bin/bash -ex |
206 | 2 | 2 | ||
208 | 3 | . $TESTSLIB/utilities.sh | 3 | # shellcheck source=tests/lib/utilities.sh |
209 | 4 | . "$TESTSLIB"/utilities.sh | ||
210 | 4 | 5 | ||
211 | 5 | echo "Wait for firstboot change to be ready" | 6 | echo "Wait for firstboot change to be ready" |
212 | 6 | while ! snap changes | grep -q "Done"; do | 7 | while ! snap changes | grep -q "Done"; do |
213 | @@ -10,9 +11,10 @@ while ! snap changes | grep -q "Done"; do | |||
214 | 10 | done | 11 | done |
215 | 11 | 12 | ||
216 | 12 | echo "Ensure fundamental snaps are still present" | 13 | echo "Ensure fundamental snaps are still present" |
220 | 13 | . $TESTSLIB/snap-names.sh | 14 | # shellcheck source=tests/lib/snap-names.sh |
221 | 14 | for name in $gadget_name $kernel_name $core_name; do | 15 | . "$TESTSLIB"/snap-names.sh |
222 | 15 | if ! snap list | grep -q $name ; then | 16 | for name in "$gadget_name" "$kernel_name" "$core_name"; do |
223 | 17 | if ! snap list | grep -q "$name" ; then | ||
224 | 16 | echo "Not all fundamental snaps are available, all-snap image not valid" | 18 | echo "Not all fundamental snaps are available, all-snap image not valid" |
225 | 17 | echo "Currently installed snaps:" | 19 | echo "Currently installed snaps:" |
226 | 18 | snap list | 20 | snap list |
227 | @@ -22,13 +24,6 @@ done | |||
228 | 22 | 24 | ||
229 | 23 | install_snap_under_test | 25 | install_snap_under_test |
230 | 24 | 26 | ||
231 | 25 | # Snapshot of the current snapd state for a later restore | ||
232 | 26 | if [ ! -f $SPREAD_PATH/snapd-state.tar.gz ] ; then | ||
233 | 27 | systemctl stop snapd.service snapd.socket | ||
234 | 28 | tar czf $SPREAD_PATH/snapd-state.tar.gz /var/lib/snapd /etc/netplan | ||
235 | 29 | systemctl start snapd.socket | ||
236 | 30 | fi | ||
237 | 31 | |||
238 | 32 | # For debugging dump all snaps and connected slots/plugs | 27 | # For debugging dump all snaps and connected slots/plugs |
239 | 33 | snap list | 28 | snap list |
241 | 34 | snap interfaces | 29 | snap connections --all |
242 | diff --git a/tests/lib/restore-each.sh b/tests/lib/restore-each.sh | |||
243 | index 5b62c4b..deea076 100644 | |||
244 | --- a/tests/lib/restore-each.sh | |||
245 | +++ b/tests/lib/restore-each.sh | |||
246 | @@ -1,12 +1,13 @@ | |||
248 | 1 | #!/bin/sh | 1 | #!/bin/bash -ex |
249 | 2 | 2 | ||
251 | 3 | . $TESTSLIB/snap-names.sh | 3 | # shellcheck source=tests/lib/snap-names.sh |
252 | 4 | . "$TESTSLIB"/snap-names.sh | ||
253 | 4 | 5 | ||
254 | 5 | # Remove all snaps not being the core, gadget, kernel or snap we're testing | 6 | # Remove all snaps not being the core, gadget, kernel or snap we're testing |
255 | 6 | for snap in /snap/*; do | 7 | for snap in /snap/*; do |
256 | 7 | snap="${snap:6}" | 8 | snap="${snap:6}" |
257 | 8 | case "$snap" in | 9 | case "$snap" in |
259 | 9 | "bin" | "$gadget_name" | "$kernel_name" | core* | "$SNAP_NAME" ) | 10 | README | bin | "$gadget_name" | "$kernel_name" | core* | snapd | "$SNAP_NAME") |
260 | 10 | ;; | 11 | ;; |
261 | 11 | *) | 12 | *) |
262 | 12 | snap remove "$snap" | 13 | snap remove "$snap" |
263 | @@ -16,16 +17,9 @@ done | |||
264 | 16 | 17 | ||
265 | 17 | # Cleanup all configuration files from ModemManager so that we have | 18 | # Cleanup all configuration files from ModemManager so that we have |
266 | 18 | # a fresh start for the next test | 19 | # a fresh start for the next test |
267 | 20 | systemctl stop snap.modem-manager.modemmanager | ||
268 | 19 | rm -rf /var/snap/modem-manager/common/* | 21 | rm -rf /var/snap/modem-manager/common/* |
269 | 20 | rm -rf /var/snap/modem-manager/current/* | 22 | rm -rf /var/snap/modem-manager/current/* |
270 | 21 | systemctl stop snap.modem-manager.modemmanager | ||
271 | 22 | |||
272 | 23 | # Ensure we have the same state for snapd as we had before | ||
273 | 24 | systemctl stop snapd.service snapd.socket | ||
274 | 25 | rm -rf /var/lib/snapd/* | ||
275 | 26 | $(cd / && tar xzf $SPREAD_PATH/snapd-state.tar.gz) | ||
276 | 27 | rm -rf /root/.snap | ||
277 | 28 | systemctl start snapd.service snapd.socket | ||
278 | 29 | 23 | ||
279 | 30 | # Bringup ModemManager again now that the system is restored | 24 | # Bringup ModemManager again now that the system is restored |
280 | 31 | systemctl start snap.modem-manager.modemmanager | 25 | systemctl start snap.modem-manager.modemmanager |
281 | diff --git a/tests/lib/snap-names.sh b/tests/lib/snap-names.sh | |||
282 | index 71c9628..f15b09a 100644 | |||
283 | --- a/tests/lib/snap-names.sh | |||
284 | +++ b/tests/lib/snap-names.sh | |||
285 | @@ -1,4 +1,4 @@ | |||
287 | 1 | #!/bin/sh | 1 | #!/bin/bash |
288 | 2 | gadget_name=$(snap list | sed -n 's/^\(pc\|pi[23]\|dragonboard\) .*/\1/p') | 2 | gadget_name=$(snap list | sed -n 's/^\(pc\|pi[23]\|dragonboard\) .*/\1/p') |
289 | 3 | kernel_name=$gadget_name-kernel | 3 | kernel_name=$gadget_name-kernel |
290 | 4 | core_name=$(snap list | awk '/^(ubuntu-)?core / {print $1; exit}') | 4 | core_name=$(snap list | awk '/^(ubuntu-)?core / {print $1; exit}') |
291 | diff --git a/tests/lib/utilities.sh b/tests/lib/utilities.sh | |||
292 | index f756f66..f0aa6d7 100644 | |||
293 | --- a/tests/lib/utilities.sh | |||
294 | +++ b/tests/lib/utilities.sh | |||
295 | @@ -8,7 +8,7 @@ wait_for_modem_manager() { | |||
296 | 8 | } | 8 | } |
297 | 9 | 9 | ||
298 | 10 | stop_after_first_reboot() { | 10 | stop_after_first_reboot() { |
300 | 11 | if [ $SPREAD_REBOOT -eq 1 ] ; then | 11 | if [ "$SPREAD_REBOOT" -eq 1 ] ; then |
301 | 12 | exit 0 | 12 | exit 0 |
302 | 13 | fi | 13 | fi |
303 | 14 | } | 14 | } |
304 | @@ -18,22 +18,22 @@ install_snap_under_test() { | |||
305 | 18 | # without any network connectivity after reboot. | 18 | # without any network connectivity after reboot. |
306 | 19 | if [ -n "$SNAP_CHANNEL" ] ; then | 19 | if [ -n "$SNAP_CHANNEL" ] ; then |
307 | 20 | # Don't reinstall if we have it installed already | 20 | # Don't reinstall if we have it installed already |
310 | 21 | if ! snap list | grep $SNAP_NAME ; then | 21 | if ! snap list | grep "$SNAP_NAME"; then |
311 | 22 | snap install --$SNAP_CHANNEL $SNAP_NAME | 22 | snap install --"$SNAP_CHANNEL" "$SNAP_NAME" |
312 | 23 | fi | 23 | fi |
313 | 24 | else | 24 | else |
314 | 25 | # Install first from store to avoid error when performing the connection | 25 | # Install first from store to avoid error when performing the connection |
316 | 26 | snap install $SNAP_NAME | 26 | snap install "$SNAP_NAME" |
317 | 27 | # Install prebuilt snap | 27 | # Install prebuilt snap |
319 | 28 | snap install --dangerous ${PROJECT_PATH}/${SNAP_NAME}_*_${SNAP_ARCH}.snap | 28 | snap install --dangerous "$PROJECT_PATH"/"$SNAP_NAME"_*_"$SNAP_ARCH".snap |
320 | 29 | if [ -n "$SNAP_AUTO_ALIASES" ]; then | 29 | if [ -n "$SNAP_AUTO_ALIASES" ]; then |
321 | 30 | snapd_version=$(snap version | awk '/^snapd / {print $2; exit}') | 30 | snapd_version=$(snap version | awk '/^snapd / {print $2; exit}') |
322 | 31 | for alias in $SNAP_AUTO_ALIASES ; do | 31 | for alias in $SNAP_AUTO_ALIASES ; do |
326 | 32 | target=$SNAP_NAME.$alias | 32 | target="$SNAP_NAME".$alias |
327 | 33 | if dpkg --compare-versions $snapd_version lt 2.25 ; then | 33 | if dpkg --compare-versions "$snapd_version" lt 2.25 ; then |
328 | 34 | target=$SNAP_NAME | 34 | target="$SNAP_NAME" |
329 | 35 | fi | 35 | fi |
331 | 36 | snap alias $target $alias | 36 | snap alias "$target" "$alias" |
332 | 37 | done | 37 | done |
333 | 38 | fi | 38 | fi |
334 | 39 | fi | 39 | fi |
335 | diff --git a/tests/main/network-manager-autoconn/task.yaml b/tests/main/network-manager-autoconn/task.yaml | |||
336 | index 7092b7f..23cff72 100644 | |||
337 | --- a/tests/main/network-manager-autoconn/task.yaml | |||
338 | +++ b/tests/main/network-manager-autoconn/task.yaml | |||
339 | @@ -6,8 +6,12 @@ execute: | | |||
340 | 6 | # Service should be up an running | 6 | # Service should be up an running |
341 | 7 | wait_for_modem_manager | 7 | wait_for_modem_manager |
342 | 8 | 8 | ||
344 | 9 | snap install network-manager | 9 | snap install --channel=20/beta network-manager |
345 | 10 | 10 | ||
346 | 11 | # Ensure all necessary plugs/slots are connected | 11 | # Ensure all necessary plugs/slots are connected |
347 | 12 | snap interfaces | grep -Ezq "modem-manager:service .*modem-manager:mmcli" | 12 | snap interfaces | grep -Ezq "modem-manager:service .*modem-manager:mmcli" |
348 | 13 | snap interfaces | grep -Ezq "modem-manager:service .*network-manager:modem-manager" | 13 | snap interfaces | grep -Ezq "modem-manager:service .*network-manager:modem-manager" |
349 | 14 | |||
350 | 15 | # Set renderer back to networkd | ||
351 | 16 | snap set network-manager defaultrenderer=false | ||
352 | 17 | sleep 2 |
PASSED: Successfully build documentation, rev: 6a1f448ffee9268 e75092c7b671893 9f6de5314f
Generated documentation is available at https:/ /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-docs/ 1342/