aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/actions/test
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-05-15 10:25:28 +0100
committerSenthil Kumaran S <senthil.kumaran@linaro.org>2018-05-23 08:38:22 +0530
commitb18e74ca979b52ea475fc7999fdbd7d961367786 (patch)
tree4dd958b266c2e7fa8345de0bc7c0dfdeb305967d /lava_dispatcher/actions/test
parent4a4bde2a18651806fd2be816ae7f403fc007dd4d (diff)
Create lava_common for Timeout and Exceptions
Make a clear separation between lava_server and lava_dispatcher binary packages so that a master does not need all the dependencies of lava-dispatcher installed (and does not necessarily have a local worker). Update documentation on how lava-common can be used. Change-Id: I040a44c7ce6d853524ccc33e08df593b0d14c54f
Diffstat (limited to 'lava_dispatcher/actions/test')
-rw-r--r--lava_dispatcher/actions/test/monitor.py4
-rw-r--r--lava_dispatcher/actions/test/multinode.py4
-rw-r--r--lava_dispatcher/actions/test/shell.py15
3 files changed, 11 insertions, 12 deletions
diff --git a/lava_dispatcher/actions/test/monitor.py b/lava_dispatcher/actions/test/monitor.py
index 4ef8c535a..a3d2bf70e 100644
--- a/lava_dispatcher/actions/test/monitor.py
+++ b/lava_dispatcher/actions/test/monitor.py
@@ -22,10 +22,10 @@ import re
import pexpect
from collections import OrderedDict
-from lava_dispatcher.action import (
+from lava_dispatcher.action import Pipeline
+from lava_common.exceptions import (
InfrastructureError,
LAVABug,
- Pipeline,
)
from lava_dispatcher.actions.test import (
TestAction,
diff --git a/lava_dispatcher/actions/test/multinode.py b/lava_dispatcher/actions/test/multinode.py
index df1a6feb7..2b866f5f3 100644
--- a/lava_dispatcher/actions/test/multinode.py
+++ b/lava_dispatcher/actions/test/multinode.py
@@ -20,9 +20,9 @@
import json
from lava_dispatcher.actions.test.shell import TestShellAction
-from lava_dispatcher.action import (
+from lava_common.timeout import Timeout
+from lava_common.exceptions import (
TestError,
- Timeout,
MultinodeProtocolTimeoutError
)
from lava_dispatcher.actions.test import LavaTest
diff --git a/lava_dispatcher/actions/test/shell.py b/lava_dispatcher/actions/test/shell.py
index 7fb6795f4..88e6b5803 100644
--- a/lava_dispatcher/actions/test/shell.py
+++ b/lava_dispatcher/actions/test/shell.py
@@ -27,25 +27,24 @@ import logging
import pexpect
from nose.tools import nottest
from collections import OrderedDict
-
-from lava_dispatcher.actions.test import (
- TestAction,
- handle_testcase
-)
-from lava_dispatcher.action import (
- Pipeline,
+from lava_common.exceptions import (
JobError,
InfrastructureError,
TestError,
LAVABug,
)
+from lava_dispatcher.actions.test import (
+ TestAction,
+ handle_testcase
+)
+from lava_dispatcher.action import Pipeline
from lava_dispatcher.logical import (
LavaTest,
RetryAction
)
from lava_dispatcher.connection import SignalMatch
from lava_dispatcher.protocols.lxc import LxcProtocol
-from lava_dispatcher.utils.constants import (
+from lava_common.constants import (
DEFAULT_V1_PATTERN,
DEFAULT_V1_FIXUP,
)