1.1.4.1.5. test_automation.utils.networking_base
Abstract base for networking/session managers used by targets.
This is intentionally minimal so that existing FVP (TelnetSessionManager) and new FPGA (SSHSessionManager) can adopt it with very small changes.
1.1.4.1.5.1. Classes
Base interface for target networking/session managers. |
1.1.4.1.5.2. Module Contents
- class test_automation.utils.networking_base.BaseNetworkManager[source]
Bases:
abc.ABCBase interface for target networking/session managers.
- abstract disconnect()[source]
Tear down all underlying sessions, connections and file handles.
- Return type:
None
- set_log_dir(path)[source]
Optional hook to change the base directory used for logs.
- Parameters:
path (str)
- Return type:
None
- abstract execute_simple_command(command, options=None, **kwargs)[source]
Optional generic “run one shell command” hook.
Subclasses may override this to run a command and return its exit code. Provide structured settings via
options;**kwargsis available for backward-compatible extras.- Parameters:
command (str) – Shell command to execute.
options (Optional[types.SimpleNamespace]) – Optional settings namespace.
kwargs – Legacy/extra keyword arguments accepted for backward compatibility.
- Returns:
Command exit code.
- Raises:
NotImplementedError – If not implemented by subclass.
- Return type:
int