Merge ~raharper/curtin:fix/bionic-no-vlan-package into curtin:master

Proposed by Ryan Harper
Status: Merged
Approved by: Ryan Harper
Approved revision: 645c55fd48fcfa2bdfd47fe8c546a7ee1b25ba0c
Merge reported by: Ryan Harper
Merged at revision: fc19cecdf8f5f2fa79f078919aa06cf60ac283cb
Proposed branch: ~raharper/curtin:fix/bionic-no-vlan-package
Merge into: curtin:master
Diff against target: 24 lines (+6/-0)
1 file modified
tests/vmtests/test_network_vlan.py (+6/-0)
Reviewer Review Type Date Requested Status
Scott Moser (community) Approve
Server Team CI bot continuous-integration Approve
Review via email: mp+343326@code.launchpad.net

Commit message

vmtest: bionic images no longer use the vlan package

Bionic images do not use the 'vlan' package to provide vlan
network configuration; skip this on bionic images.

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Scott Moser (smoser) :
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
645c55f... by Ryan Harper

Refactor release check to be forward looking

Revision history for this message
Ryan Harper (raharper) :
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

woudl be good make target_release always set to the right thing or some other way abstract that differencx.e
h

review: Approve
Revision history for this message
Ryan Harper (raharper) wrote :

An upstream commit landed for this bug.

To view that commit see the following URL:
https://git.launchpad.net/curtin/commit/?id=fc19cecd

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tests/vmtests/test_network_vlan.py b/tests/vmtests/test_network_vlan.py
2index 24a01ec..00eb445 100644
3--- a/tests/vmtests/test_network_vlan.py
4+++ b/tests/vmtests/test_network_vlan.py
5@@ -3,6 +3,7 @@
6 from .releases import base_vm_classes as relbase
7 from .releases import centos_base_vm_classes as centos_relbase
8 from .test_network import TestNetworkBaseTestsAbs
9+from unittest import SkipTest
10
11 import textwrap
12 import yaml
13@@ -34,6 +35,11 @@ class TestNetworkVlanAbs(TestNetworkBaseTestsAbs):
14 self.output_files_exist(link_files)
15
16 def test_vlan_installed(self):
17+ release = self.target_release if self.target_release else self.release
18+ if release not in ('precise', 'trusty', 'xenial', 'artful'):
19+ raise SkipTest("release '%s' does not need the vlan package" %
20+ release)
21+
22 self.assertIn("vlan", self.debian_packages, "vlan deb not installed")
23
24 def test_vlan_enabled(self):

Subscribers

People subscribed via source and target branches