Merge ~raharper/curtin:fix/dont-check-multi-bcache-dnames into curtin:master

Proposed by Ryan Harper
Status: Merged
Approved by: Scott Moser
Approved revision: 5994d6c4daeb57d13b7ae35fd934754090b19d8b
Merge reported by: Scott Moser
Merged at revision: 65ceb3086089f3b6aec537e8118e300b0dbc8f65
Proposed branch: ~raharper/curtin:fix/dont-check-multi-bcache-dnames
Merge into: curtin:master
Diff against target: 74 lines (+26/-6)
2 files modified
tests/vmtests/__init__.py (+4/-2)
tests/vmtests/test_mdadm_bcache.py (+22/-4)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
curtin developers Pending
Review via email: mp+341915@code.launchpad.net

Commit message

vmtest: skip some bcache tests pending kernel fixes

There are a few kernel bugs related to bcache which prevent testing of
some bcache scenarios, add skip_by_date for bug 1728742 and bug 1754581.

Description of the change

vmtest: skip some bcache tests pending kernel fixes

There are a few kernel bugs related to bcache which prevent testing of
some bcache scenarios, add skip_by_date for bug 1728742 and bug 1754581.

To post a comment you must log in.
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 :

An upstream commit landed for this bug.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tests/vmtests/__init__.py b/tests/vmtests/__init__.py
2index 0ff35d6..fac9a2a 100644
3--- a/tests/vmtests/__init__.py
4+++ b/tests/vmtests/__init__.py
5@@ -1282,8 +1282,10 @@ class VMBaseClass(TestCase):
6 self.assertEqual(fstab_entry.split(' ')[1],
7 mntpoint)
8
9- def test_dname(self):
10- if self.disk_to_check is None:
11+ def test_dname(self, disk_to_check=None):
12+ if not disk_to_check:
13+ disk_to_check = self.disk_to_check
14+ if disk_to_check is None:
15 return
16 path = self.collect_path("ls_dname")
17 if not os.path.exists(path):
18diff --git a/tests/vmtests/test_mdadm_bcache.py b/tests/vmtests/test_mdadm_bcache.py
19index e34d84b..b0e8c8c 100644
20--- a/tests/vmtests/test_mdadm_bcache.py
21+++ b/tests/vmtests/test_mdadm_bcache.py
22@@ -47,9 +47,10 @@ class TestMdadmBcacheAbs(TestMdadmAbs):
23 ('main_disk', 4),
24 ('main_disk', 5),
25 ('main_disk', 6),
26- ('md0', 0),
27- ('cached_array', 0),
28- ('cached_array_2', 0)]
29+ ('md0', 0)]
30+ bcache_dnames = [('cached_array', 0),
31+ ('cached_array_2', 0),
32+ ('cached_array_3', 0)]
33 extra_disks = ['4G', '4G', '4G', '4G', '4G']
34 collect_scripts = TestMdadmAbs.collect_scripts + [textwrap.dedent("""
35 cd OUTPUT_COLLECT_D
36@@ -117,10 +118,19 @@ class TestMdadmBcacheAbs(TestMdadmAbs):
37 self.check_file_regex("bcache_cache_mode", r"\[writethrough\]")
38 self.check_file_regex("bcache_cache_mode", r"\[writearound\]")
39
40+ def test_bcache_dnames(self):
41+ self.skip_by_date("1728742", fixby="2018-04-26")
42+ self.test_dname(disk_to_check=self.bcache_dnames)
43+
44
45 class TrustyTestMdadmBcache(relbase.trusty, TestMdadmBcacheAbs):
46 __test__ = True
47
48+ @classmethod
49+ def setUpClass(cls):
50+ cls.skip_by_date("1754581", fixby="2018-06-22")
51+ super().setUpClass()
52+
53 # FIXME(LP: #1523037): dname does not work on trusty
54 # when dname works on trusty, then we need to re-enable by removing line.
55 def test_dname(self):
56@@ -130,9 +140,17 @@ class TrustyTestMdadmBcache(relbase.trusty, TestMdadmBcacheAbs):
57 print("test_ptable does not work for Trusty")
58
59
60-class TrustyHWEXTestMdadmBcache(relbase.trusty_hwe_x, TrustyTestMdadmBcache):
61+class TrustyHWEXTestMdadmBcache(relbase.trusty_hwe_x, TestMdadmBcacheAbs):
62 __test__ = True
63
64+ # FIXME(LP: #1523037): dname does not work on trusty
65+ # when dname works on trusty, then we need to re-enable by removing line.
66+ def test_dname(self):
67+ print("test_dname does not work for Trusty")
68+
69+ def test_ptable(self):
70+ print("test_ptable does not work for Trusty")
71+
72
73 class XenialGATestMdadmBcache(relbase.xenial_ga, TestMdadmBcacheAbs):
74 __test__ = True

Subscribers

People subscribed via source and target branches