This repository was archived by the owner on Dec 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +0
-60
lines changed Expand file tree Collapse file tree 4 files changed +0
-60
lines changed Original file line number Diff line number Diff line change 6
6
.. moduleauthor:: Andrea Cervesato <[email protected] >
7
7
"""
8
8
import os
9
- import abc
10
9
import time
11
10
import select
12
11
import signal
@@ -221,14 +220,6 @@ def run_command(self,
221
220
222
221
return ret
223
222
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
-
232
223
def fetch_file (
233
224
self ,
234
225
target_path : str ,
Original file line number Diff line number Diff line change 7
7
"""
8
8
import os
9
9
import re
10
- import abc
11
10
import time
12
11
import signal
13
12
import select
@@ -568,14 +567,6 @@ def run_command(
568
567
569
568
return ret
570
569
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
-
579
570
def fetch_file (
580
571
self ,
581
572
target_path : str ,
Original file line number Diff line number Diff line change 6
6
.. moduleauthor:: Andrea Cervesato <[email protected] >
7
7
"""
8
8
import os
9
- import abc
10
9
import time
11
10
import select
12
11
import socket
@@ -379,14 +378,6 @@ def run_command(
379
378
380
379
return ret
381
380
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
-
390
381
def fetch_file (
391
382
self ,
392
383
target_path : str ,
Original file line number Diff line number Diff line change @@ -172,39 +172,6 @@ def run_command(self,
172
172
"""
173
173
raise NotImplementedError ()
174
174
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
-
208
175
def fetch_file (
209
176
self ,
210
177
target_path : str ,
You can’t perform that action at this time.
0 commit comments