|
Mbed Host Tests
|
Public Member Functions | |
| def | __init__ (self) |
| def | is_os_supported (self, os_name=None) |
| In this implementation this plugin only is supporeted under Windows machines. More... | |
| def | setup (self, args, kwargs) |
| Configure plugin, this function should be called before plugin execute() method is used. More... | |
| 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 | __init__ (self) |
| def | setup (self, args, kwargs) |
| Interface methods. More... | |
| def | execute (self, capability, args, kwargs) |
| Executes capability by name. More... | |
| 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... | |
Public Attributes | |
| JN51XX_PROGRAMMER | |
Public Attributes inherited from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase | |
| plugin_logger | |
Static Public Attributes | |
| string | name = 'HostTestPluginCopyMethod_JN51xx' |
| string | type = 'CopyMethod' |
| list | capabilities = ['jn51xx'] |
| list | required_parameters = ['image_path', 'serial'] |
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 |
Definition at line 24 of file module_copy_jn51xx.py.
| def mbed_host_tests.host_tests_plugins.module_copy_jn51xx.HostTestPluginCopyMethod_JN51xx.__init__ | ( | self | ) |
ctor
Definition at line 32 of file module_copy_jn51xx.py.
| def mbed_host_tests.host_tests_plugins.module_copy_jn51xx.HostTestPluginCopyMethod_JN51xx.execute | ( | self, | |
| capability, | |||
| args, | |||
| kwargs | |||
| ) |
Executes capability by name.
| capability | Capability name |
| args | Additional arguments |
| kwargs | Additional arguments |
Each capability e.g. may directly just call some command line program or execute building pythonic function
Definition at line 55 of file module_copy_jn51xx.py.
| def mbed_host_tests.host_tests_plugins.module_copy_jn51xx.HostTestPluginCopyMethod_JN51xx.is_os_supported | ( | self, | |
os_name = None |
|||
| ) |
In this implementation this plugin only is supporeted under Windows machines.
Definition at line 37 of file module_copy_jn51xx.py.
| def mbed_host_tests.host_tests_plugins.module_copy_jn51xx.HostTestPluginCopyMethod_JN51xx.setup | ( | self, | |
| args, | |||
| kwargs | |||
| ) |
Configure plugin, this function should be called before plugin execute() method is used.
Definition at line 49 of file module_copy_jn51xx.py.
|
static |
Definition at line 29 of file module_copy_jn51xx.py.
| mbed_host_tests.host_tests_plugins.module_copy_jn51xx.HostTestPluginCopyMethod_JN51xx.JN51XX_PROGRAMMER |
Definition at line 52 of file module_copy_jn51xx.py.
|
static |
Definition at line 27 of file module_copy_jn51xx.py.
|
static |
Definition at line 30 of file module_copy_jn51xx.py.
|
static |
Definition at line 28 of file module_copy_jn51xx.py.