Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 232c7e7

Browse files
committed
Remove SUT::run_multiple_commands API
The reason of this is that we will handle parallel execution from dispatcher implementation and this API is no longer needed. Signed-off-by: Andrea Cervesato <[email protected]>
1 parent 38265c1 commit 232c7e7

File tree

4 files changed

+0
-60
lines changed

4 files changed

+0
-60
lines changed

ltp/host.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.. moduleauthor:: Andrea Cervesato <[email protected]>
77
"""
88
import os
9-
import abc
109
import time
1110
import select
1211
import signal
@@ -221,14 +220,6 @@ def run_command(self,
221220

222221
return ret
223222

224-
@abc.abstractmethod
225-
def run_multiple_commands(
226-
self,
227-
commands: list,
228-
timeout: float = 3600,
229-
command_completed: callable = None) -> list:
230-
pass
231-
232223
def fetch_file(
233224
self,
234225
target_path: str,

ltp/qemu.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"""
88
import os
99
import re
10-
import abc
1110
import time
1211
import signal
1312
import select
@@ -568,14 +567,6 @@ def run_command(
568567

569568
return ret
570569

571-
@abc.abstractmethod
572-
def run_multiple_commands(
573-
self,
574-
commands: list,
575-
timeout: float = 3600,
576-
command_completed: callable = None) -> list:
577-
pass
578-
579570
def fetch_file(
580571
self,
581572
target_path: str,

ltp/ssh.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.. moduleauthor:: Andrea Cervesato <[email protected]>
77
"""
88
import os
9-
import abc
109
import time
1110
import select
1211
import socket
@@ -379,14 +378,6 @@ def run_command(
379378

380379
return ret
381380

382-
@abc.abstractmethod
383-
def run_multiple_commands(
384-
self,
385-
commands: list,
386-
timeout: float = 3600,
387-
command_completed: callable = None) -> list:
388-
pass
389-
390381
def fetch_file(
391382
self,
392383
target_path: str,

ltp/sut.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -172,39 +172,6 @@ def run_command(self,
172172
"""
173173
raise NotImplementedError()
174174

175-
def run_multiple_commands(self,
176-
commands: list,
177-
timeout: float = 3600,
178-
command_completed: callable = None) -> list:
179-
"""
180-
Run multiple commands in parallel on target.
181-
:param commands: commands to execute
182-
:type commands: list(str)
183-
:param timeout: timeout before stopping execution. Default is 3600
184-
:type timeout: float
185-
:param command_completed: function called when a test has completed.
186-
Its definition is `command_completed(ret: set)` where ret has the
187-
same definition of data returned by `run_multiple_commands` inside
188-
the list.
189-
:type command_completed: callable
190-
:returns: list of (dict, Exception) containing command execution
191-
information and exception.
192-
193-
[
194-
({
195-
"command": <str>,
196-
"timeout": <float>,
197-
"returncode": <int>,
198-
"stdout": <str>,
199-
"exec_time": <float>,
200-
}, None)
201-
...
202-
]
203-
204-
If None is returned, then callback failed.
205-
"""
206-
raise NotImplementedError()
207-
208175
def fetch_file(
209176
self,
210177
target_path: str,

0 commit comments

Comments
 (0)