esptest.adapter.dut.wrapper module

esptest.adapter.dut.wrapper.dut_wrapper(dut: RawPort, name: str = '', log_file: str = '') DutBase[source]
esptest.adapter.dut.wrapper.dut_wrapper(dut: Serial | SerialPort, name: str = '', log_file: str = '') DutBase
esptest.adapter.dut.wrapper.dut_wrapper(dut: DutConfig, wrap_cls: Type[T] | None = None) T
esptest.adapter.dut.wrapper.dut_wrapper(dut: Any, name: str = '', log_file: str = '', wrap_cls: Type[T] | None = None) T

wrap the dut from other frameworks.

Supported dut types: - serial.Serial: will be converted to SerialExt - TBD: pytest-embedded dut - TBD: tiny-test-fw dut - TBD: ATS UartPort - Other objects that matched RawPort.

Parameters:
  • dut (Any) – dut_config or the dut object from other frameworks

  • name (str, optional) – set name for dut wrapper, not supported getting from dut class by default.

  • log_file (str, optional) – set name for dut wrapper, not supported getting from dut class by default.

  • wrap_cls (Type, optional) – customer DutClass with mixins

Returns:

dut object

Return type:

DutInterface