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 66.. moduleauthor:: Andrea Cervesato <andrea.cervesato@suse.com>
77"""
88import os
9- import abc
109import time
1110import select
1211import 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 ,
Original file line number Diff line number Diff line change 77"""
88import os
99import re
10- import abc
1110import time
1211import signal
1312import 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 ,
Original file line number Diff line number Diff line change 66.. moduleauthor:: Andrea Cervesato <andrea.cervesato@suse.com>
77"""
88import os
9- import abc
109import time
1110import select
1211import 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 ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments