~raharper/curtin/new-bionic-upstream-snapshot-v2

« back to all changes in this revision

Viewing changes to tests/vmtests/test_mdadm_bcache.py

  • Committer: Scott Moser
  • Date: 2016-12-02 02:05:28 UTC
  • mfrom: (1.1.42)
  • Revision ID: smoser@ubuntu.com-20161202020528-qnwvmrom09tjjhzk
* New upstream snapshot.
  - pep8: fix pep8 errors found with 'make pep8' on zesty.
  - Workaround failures caused by gpg2 daemons left running in chroot.
    (LP: #1645680)
  - Install u-boot-tools when running on a system with u-boot.
    (LP: #1640519)
  - block: fix partition kname for raid devices  (LP: #1641661)
  - Fix up tox errors that slipped in and new pycodestyle 2.1.0 complaints.
  - vmtests: adjust vmtest image sync metadata filenames
  - vmtests: Add centos support
  - Disable WilyTestRaid5Bcache vmtest
  - tools/xkvm: fix --netdev=<bridge>
  - bytes2human: fix for values larger than 32 bit int on 32 bit python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
    __test__ = True
183
183
 
184
184
 
 
185
class TestMirrorbootPartitionsAbs(TestMdadmAbs):
 
186
    # alternative config for more complex setup
 
187
    conf_file = "examples/tests/mirrorboot-msdos-partition.yaml"
 
188
    # initialize secondary disk
 
189
    extra_disks = ['10G']
 
190
    disk_to_check = [('main_disk', 1),
 
191
                     ('second_disk', 1),
 
192
                     ('md0', 2)]
 
193
 
 
194
 
 
195
class TrustyTestMirrorbootPartitions(relbase.trusty,
 
196
                                     TestMirrorbootPartitionsAbs):
 
197
    __test__ = True
 
198
 
 
199
    # FIXME(LP: #1523037): dname does not work on trusty
 
200
    # when dname works on trusty, then we need to re-enable by removing line.
 
201
    def test_dname(self):
 
202
        print("test_dname does not work for Trusty")
 
203
 
 
204
    def test_ptable(self):
 
205
        print("test_ptable does not work for Trusty")
 
206
 
 
207
 
 
208
class TrustyHWEUTestMirrorbootPartitions(relbase.trusty_hwe_u,
 
209
                                         TrustyTestMirrorbootPartitions):
 
210
    # This tests kernel upgrade in target
 
211
    __test__ = True
 
212
 
 
213
 
 
214
class XenialTestMirrorbootPartitions(relbase.xenial,
 
215
                                     TestMirrorbootPartitionsAbs):
 
216
    __test__ = True
 
217
 
 
218
 
 
219
class YakketyTestMirrorbootPartitions(relbase.yakkety,
 
220
                                      TestMirrorbootPartitionsAbs):
 
221
    __test__ = True
 
222
 
 
223
 
185
224
class TestRaid5bootAbs(TestMdadmAbs):
186
225
    # alternative config for more complex setup
187
226
    conf_file = "examples/tests/raid5boot.yaml"