~wesley-wiedenmeier/curtin/reporting-cleanup-rebase

« back to all changes in this revision

Viewing changes to tests/vmtests/test_bonding.py

  • Committer: Scott Moser
  • Date: 2016-02-22 20:21:45 UTC
  • mfrom: (352.1.9 curtin)
  • Revision ID: smoser@ubuntu.com-20160222202145-uowg030tvx1dotjj
Hardware Enablement Stack (HWE) Tests for Trusty and Precise

This series strives for better vmtest coverage of HWE Kernels by:
- Provide infrastructure for HWE Tests
- Defining Trusty-HWE-[uvw] in various tests (all working).
  - Basic
  - Bonding
  - Network
  - Raid5Bcache
  - LVM
  - We didn't define all (where we considered them covered otherwise)
  - we did not enable all of them as a tradeoff to CI test execution time.
- Define minimal Precise-HWE-T Tests
  - enabled one Disk case (Bcache basic)
  - enabled one Net case (bonding)
  - some more defined but disabled (comment lists last known issue)

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
                self.assertEqual(gw_ip, gw)
205
205
 
206
206
 
 
207
class PreciseHWETTestBonding(relbase.precise_hwe_t, TestNetworkAbs):
 
208
    __test__ = True
 
209
    # package names on precise are different, need to check on ifenslave-2.6
 
210
    collect_scripts = TestNetworkAbs.collect_scripts + [textwrap.dedent("""
 
211
             cd OUTPUT_COLLECT_D
 
212
             dpkg-query -W -f '${Status}' ifenslave-2.6 > ifenslave_installed
 
213
             """)]
 
214
 
 
215
 
207
216
class TrustyTestBonding(relbase.trusty, TestNetworkAbs):
208
217
    __test__ = False
209
218
 
210
219
 
 
220
class TrustyHWEUTestBonding(relbase.trusty_hwe_u, TrustyTestBonding):
 
221
    __test__ = True
 
222
 
 
223
 
 
224
class TrustyHWEVTestBonding(relbase.trusty_hwe_v, TrustyTestBonding):
 
225
    # Working, but off by default to safe test suite runtime
 
226
    # oldest/newest HWE-* covered above/below
 
227
    __test__ = False
 
228
 
 
229
 
 
230
class TrustyHWEWTestBonding(relbase.trusty_hwe_w, TrustyTestBonding):
 
231
    __test__ = True
 
232
 
 
233
 
211
234
class VividTestBonding(relbase.vivid, TestNetworkAbs):
212
235
    __test__ = True
213
236