aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/tests/test_pipeline.py
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-04-13 11:52:07 +0100
committerNeil Williams <neil.williams@linaro.org>2018-04-13 12:07:38 +0000
commite627f8ecc1010602ad34ce401b8130824dc7ae8b (patch)
treec4c04ab9ed54f1c714feb09ee345e47a50cdd95c /lava_scheduler_app/tests/test_pipeline.py
parent0208402fa79eeb46b881f120897d23be516a0e70 (diff)
Allow skipping one unit test if kvm not enabled
The ci.debian.net autopkgtest environment does not necessarily enable -kvm, so this test failed. Skip if the existing check from lava-dispatcher determines that a test job using kvm would also fail. Change-Id: Icf13aa15d8bfdd07b73acd01f864b9c6812ae39b
Diffstat (limited to 'lava_scheduler_app/tests/test_pipeline.py')
-rw-r--r--lava_scheduler_app/tests/test_pipeline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lava_scheduler_app/tests/test_pipeline.py b/lava_scheduler_app/tests/test_pipeline.py
index 75d0d3afb..c7888a933 100644
--- a/lava_scheduler_app/tests/test_pipeline.py
+++ b/lava_scheduler_app/tests/test_pipeline.py
@@ -2,6 +2,7 @@ import os
import sys
import yaml
import jinja2
+import unittest
import logging
from lava_scheduler_app.models import (
Device,
@@ -31,6 +32,7 @@ from lava_dispatcher.test.test_defs import check_missing_path
from lava_dispatcher.action import JobError, InfrastructureError
from lava_dispatcher.actions.boot.qemu import BootQEMU
from lava_dispatcher.protocols.multinode import MultinodeProtocol
+from lava_dispatcher.utils.constants import SYS_CLASS_KVM
from lava_dispatcher.test.utils import DummyLogger
from django_restricted_resource.managers import RestrictedResourceQuerySet
from unittest import TestCase
@@ -1017,6 +1019,7 @@ class TestYamlMultinode(TestCaseWithFactory):
}
)
+ @unittest.skipIf(not os.path.exists(SYS_CLASS_KVM), "Cannot use --enable-kvm")
def test_multinode_mixed_deploy(self):
user = self.factory.make_user()
device_type = self.factory.make_device_type()