mbedhtrun.py
Go to the documentation of this file.
"""
mbed SDK
Copyright (c) 2011-2016 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Author: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
"""
from multiprocessing import freeze_support
from mbed_host_tests import init_host_test_cli_params
from mbed_host_tests.host_tests_runner.host_test_default import DefaultTestSelector
def main():
"""! This function drives command line tool 'mbedhtrun' which is using DefaultTestSelector
@details 1. Create DefaultTestSelector object and pass command line parameters
2. Call default test execution function run() to start test instrumentation
"""
freeze_support()
result = -2
test_selector = DefaultTestSelector(init_host_test_cli_params())
try:
result = test_selector.execute()
except (KeyboardInterrupt, SystemExit):
test_selector.finish()
result = -3
raise
else:
test_selector.finish()
return result
mbed_host_tests.host_tests_runner.host_test_default.DefaultTestSelector
Select default host_test supervision (replaced after auto detection)
Definition: host_test_default.py:51
mbed_host_tests.host_tests_runner.host_test_default
Definition: host_test_default.py:1
mbed_host_tests.mbedhtrun.main
def main()
This function drives command line tool 'mbedhtrun' which is using DefaultTestSelector.
Definition: mbedhtrun.py:25
mbed_host_tests.init_host_test_cli_params
def init_host_test_cli_params()
Function creates CLI parser object and returns populated options object.
Definition: __init__.py:59