3 Copyright (c) 2011-2015 ARM Limited
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 Author: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
20 from .host_test_plugins
import HostTestPluginBase
26 name =
'HostTestPluginResetMethod_ublox'
28 capabilities = [
'ublox']
29 required_parameters = []
33 """! In this implementation this plugin only is supporeted under Windows machines
40 if os_name
and os_name.startswith(
'Windows'):
44 def setup(self, *args, **kwargs):
45 """! Configure plugin, this function should be called before plugin execute() method is used.
51 def execute(self, capability, *args, **kwargs):
52 """! Executes capability by name
54 @param capability Capability name
55 @param args Additional arguments
56 @param kwargs Additional arguments
58 @details Each capability e.g. may directly just call some command line program or execute building pythonic function
60 @return Capability call return value
63 if self.
check_parameterscheck_parameters(capability, *args, **kwargs)
is True:
64 if capability ==
'ublox':
67 cmd = [self.
JLINKJLINK,
75 """ Returns plugin available in this module
Base class for all plugins used with host tests.
def run_command(self, cmd, shell=True)
Runs command from command line.
def mbed_os_support(self)
Function used to determine host OS.
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 i...
def is_os_supported(self, os_name=None)
In this implementation this plugin only is supporeted under Windows machines.
def execute(self, capability, *args, **kwargs)
Executes capability by name.
def setup(self, *args, **kwargs)
Configure plugin, this function should be called before plugin execute() method is used.