Mbed Host Tests
mbedhtrun.py
Go to the documentation of this file.
1
"""
2
mbed SDK
3
Copyright (c) 2011-2016 ARM Limited
4
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
8
9
http://www.apache.org/licenses/LICENSE-2.0
10
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.
16
17
Author: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
18
"""
19
20
from
multiprocessing
import
freeze_support
21
from
mbed_host_tests
import
init_host_test_cli_params
22
from
mbed_host_tests.host_tests_runner.host_test_default
import
DefaultTestSelector
23
24
25
def
main
():
26
"""! This function drives command line tool 'mbedhtrun' which is using DefaultTestSelector
27
@details 1. Create DefaultTestSelector object and pass command line parameters
28
2. Call default test execution function run() to start test instrumentation
29
"""
30
freeze_support()
31
result = -2
32
test_selector =
DefaultTestSelector
(
init_host_test_cli_params
())
33
try
:
34
result = test_selector.execute()
35
except
(KeyboardInterrupt, SystemExit):
36
test_selector.finish()
37
result = -3
38
raise
39
else
:
40
test_selector.finish()
41
42
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.mbedhtrun.main
def main()
This function drives command line tool 'mbedhtrun' which is using DefaultTestSelector.
Definition:
mbedhtrun.py:25
mbed_host_tests.host_tests_runner.host_test_default
Definition:
host_test_default.py:1
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
mbed_host_tests
mbedhtrun.py
Generated by
1.8.17