Mbed Host Tests
mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2 Class Reference

Plugin used to reset ARM_MPS2 platform. More...

Inheritance diagram for mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2:
mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase

Public Member Functions

def __init__ (self)
 
def touch_file (self, path)
 
def setup (self, *args, **kwargs)
 
def execute (self, capability, *args, **kwargs)
 Executes capability by name. More...
 
- Public Member Functions inherited from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase
def is_os_supported (self, os_name=None)
 
def print_plugin_error (self, text)
 Interface helper methods - overload only if you need to have custom behaviour. More...
 
def print_plugin_info (self, text, NL=True)
 Function prints notification in console and exits always with True. More...
 
def print_plugin_char (self, char)
 
def check_mount_point_ready (self, destination_disk, init_delay=0.2, loop_delay=0.25, target_id=None, timeout=60)
 Waits until destination_disk is ready and can be accessed by e.g. More...
 
def check_serial_port_ready (self, serial_port, target_id=None, timeout=60)
 Function checks (using mbed-ls) and updates serial port name information for DUT with specified target_id. More...
 
def check_parameters (self, capability, *args, **kwargs)
 This function should be ran each time we call execute() to check if none of the required parameters is missing. More...
 
def run_command (self, cmd, shell=True)
 Runs command from command line. More...
 
def mbed_os_info (self)
 Returns information about host OS. More...
 
def mbed_os_support (self)
 Function used to determine host OS. More...
 

Static Public Attributes

string name = 'HostTestPluginResetMethod_MPS2'
 
string type = 'ResetMethod'
 
list capabilities = ['reboot.txt']
 
list required_parameters = ['disk']
 
- Static Public Attributes inherited from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase
string name = "HostTestPluginBase"
 Interface: More...
 
string type = "BasePlugin"
 
list capabilities = []
 
list required_parameters = []
 
bool stable = False
 

Additional Inherited Members

- Public Attributes inherited from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase
 plugin_logger
 

Detailed Description

Plugin used to reset ARM_MPS2 platform.

Supports: reboot.txt - startup from standby state, reboots when in run mode.

Definition at line 27 of file module_reset_mps2.py.

Constructor & Destructor Documentation

◆ __init__()

def mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.__init__ (   self)

Member Function Documentation

◆ execute()

def mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.execute (   self,
  capability,
args,
**  kwargs 
)

Executes capability by name.

   @param capability Capability name
   @param args Additional arguments
   @param kwargs Additional arguments

   @details Each capability e.g. may directly just call some command line program or execute building pythonic function

   @return Capability call return value

Reimplemented from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase.

Definition at line 58 of file module_reset_mps2.py.

◆ setup()

def mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.setup (   self,
args,
**  kwargs 
)
 Prepare / configure plugin to work.
    This method can receive plugin specific parameters by kwargs and
    ignore other parameters which may affect other plugins.

Reimplemented from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase.

Definition at line 51 of file module_reset_mps2.py.

◆ touch_file()

def mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.touch_file (   self,
  path 
)
 Touch file and set timestamp to items

Definition at line 45 of file module_reset_mps2.py.

Member Data Documentation

◆ capabilities

list mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.capabilities = ['reboot.txt']
static

Definition at line 37 of file module_reset_mps2.py.

◆ name

string mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.name = 'HostTestPluginResetMethod_MPS2'
static

Definition at line 35 of file module_reset_mps2.py.

◆ required_parameters

list mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.required_parameters = ['disk']
static

Definition at line 38 of file module_reset_mps2.py.

◆ type

string mbed_host_tests.host_tests_plugins.module_reset_mps2.HostTestPluginResetMethod_MPS2.type = 'ResetMethod'
static

Definition at line 36 of file module_reset_mps2.py.


The documentation for this class was generated from the following file: