aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-07-19 07:58:39 +0100
committerRemi Duraffort <remi.duraffort@linaro.org>2018-07-19 15:40:56 +0000
commit0892c092957f55f5ddebdced896e68616d5e1077 (patch)
treedb2df5f89e6de4ee38c079b564d8d448f88e2e1f
parentbaf22688e0b2cbcbae24cc839793b5c55ea5f275 (diff)
Skip deployment_data test if simg2img not installed
Change-Id: I3845e9587b2a3df003ad6cee102c4c1dca20715c
-rw-r--r--lava_dispatcher/test/test_defs.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lava_dispatcher/test/test_defs.py b/lava_dispatcher/test/test_defs.py
index 68a63bf67..e64a23a63 100644
--- a/lava_dispatcher/test/test_defs.py
+++ b/lava_dispatcher/test/test_defs.py
@@ -47,7 +47,10 @@ from lava_dispatcher.actions.deploy.testdef import (
from lava_dispatcher.actions.boot import BootAction
from lava_dispatcher.actions.deploy.overlay import OverlayAction
from lava_dispatcher.actions.deploy.download import DownloaderAction
-from lava_dispatcher.test.utils import infrastructure_error
+from lava_dispatcher.test.utils import (
+ infrastructure_error,
+ infrastructure_error_multi_paths,
+)
# pylint: disable=duplicate-code
@@ -514,6 +517,9 @@ test3a: skip
child.expect([re_pat, pexpect.EOF])
self.assertEqual(child.after, pexpect.EOF)
+ @unittest.skipIf(infrastructure_error_multi_paths(
+ ['lxc-info', 'img2simg', 'simg2img']),
+ "lxc or img2simg or simg2img not installed")
def test_deployment_data(self):
job = self.factory.create_job('hi960-hikey-01.jinja2', 'sample_jobs/hikey960-oe-aep.yaml')
job.validate()