1.1.3.1.2. test_automation.targets.registry
1.1.3.1.2.1. Attributes
1.1.3.1.2.2. Classes
Container for a platform instance. |
1.1.3.1.2.3. Functions
|
Decorator to register a factory for platform under the given kind. |
|
Fetch a registered platform factory by kind. |
1.1.3.1.2.4. Module Contents
- test_automation.targets.registry.register_platform(kind)[source]
Decorator to register a factory for platform under the given kind.
- Parameters:
kind – Platform kind (e.g.,
"fvp","fpga").- Returns:
Decorator that registers the factory and returns it unchanged.
- test_automation.targets.registry.get_factory(kind)[source]
Fetch a registered platform factory by kind.
- Parameters:
kind – Platform kind (case-insensitive).
- Returns:
Registered factory callable, or
Noneif not found.
- class test_automation.targets.registry.DriverBundle(driver, manager=None, login_primary=None, export_env=None)[source]
Container for a platform instance.
- Parameters:
driver – Platform driver instance with
start(),wait_ready(),stop()(and optionallyinit()).manager – Optional session/console manager (e.g., telnet, ssh, serial).
login_primary – Optional callable for logging into the primary.
export_env – Optional callable for exporting environment variables.
- Variables:
driver – Platform driver instance.
manager – Session/console manager object.
login_primary – Callable for primary console login.
export_env – Callable for exporting environment variables.