aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/shell.py
diff options
context:
space:
mode:
authorRĂ©mi Duraffort <remi.duraffort@linaro.org>2018-02-08 17:32:43 +0100
committerMatt Hart <matthew.hart@linaro.org>2018-02-15 13:19:34 +0000
commit377e6704de6fe72687d949125cd4bd0f29b0797f (patch)
tree3c18eff844d60a4d93b94d32d8cfe53cc037ae1d /lava_dispatcher/shell.py
parent93f4aadb1e5465e9dfe836793673fcbce90e7e3c (diff)
Move name, description and summary as class variable
This also fix the name when calling parent __init__ function. Change-Id: I302c3920eed9ef51232e22d75d555f0d34abf510
Diffstat (limited to 'lava_dispatcher/shell.py')
-rw-r--r--lava_dispatcher/shell.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lava_dispatcher/shell.py b/lava_dispatcher/shell.py
index 92547a467..2b44dea53 100644
--- a/lava_dispatcher/shell.py
+++ b/lava_dispatcher/shell.py
@@ -288,13 +288,14 @@ class ExpectShellSession(Action):
The shell connection can be over any particular connection,
all that is needed is a prompt.
"""
+
compatibility = 2
+ name = "expect-shell-connection"
+ description = "Wait for a shell"
+ summary = "Expect a shell prompt"
def __init__(self):
super(ExpectShellSession, self).__init__()
- self.name = "expect-shell-connection"
- self.summary = "Expect a shell prompt"
- self.description = "Wait for a shell"
self.force_prompt = True
def validate(self):