forked from TrueCloudLab/frostfs-testlib
1. Adding timeout control things 2. Add logs filtering
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
22f73e6cde
commit
469ab4db43
6 changed files with 106 additions and 9 deletions
|
@ -2,6 +2,8 @@ from abc import ABC, abstractmethod
|
|||
from dataclasses import dataclass
|
||||
from typing import Optional
|
||||
|
||||
from neofs_testlib.defaults import Options
|
||||
|
||||
|
||||
@dataclass
|
||||
class InteractiveInput:
|
||||
|
@ -49,10 +51,14 @@ class CommandOptions:
|
|||
|
||||
interactive_inputs: Optional[list[InteractiveInput]] = None
|
||||
close_stdin: bool = False
|
||||
timeout: int = 30
|
||||
timeout: Optional[int] = None
|
||||
check: bool = True
|
||||
no_log: bool = False
|
||||
|
||||
def __post_init__(self):
|
||||
if self.timeout is None:
|
||||
self.timeout = Options.get_default_shell_timeout()
|
||||
|
||||
|
||||
@dataclass
|
||||
class CommandResult:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue