2
This just tests the vmtest harness. Useful for quickly running
3
multiple tests that can pass or fail.
5
To see these tests fail, run:
6
CURTIN_VMTEST_DEBUG_ALLOW_FAIL=1 nosetests3 tests/vmtests/test_vmtests.py
9
from . import (PsuedoVMBaseClass)
10
from .releases import base_vm_classes as relbase
13
class PsuedoBase(PsuedoVMBaseClass):
14
# Just present to show structure used in other tests
18
class PsuedoTestAllPass(relbase.trusty, PsuedoBase):
20
# These boot_results would cause first_boot failure
22
# 'install': {'timeout': 0, 'exit': 0},
23
# 'first_boot': {'timeout': 0, 'exit': 1},
33
class PsuedoTestMixedPassAndFail(relbase.xenial, PsuedoBase):
40
self._maybe_raise(Exception("This failed."))
43
self._maybe_raise(Exception("This second test failed."))