-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
900 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
Author: Przemyslaw Wirkus <[email protected]> | ||
""" | ||
|
||
import pkg_resources # part of setuptools | ||
from sys import stdout | ||
from mbed_host_tests.host_tests_runner.mbed_base import Mbed | ||
|
||
|
@@ -121,6 +122,13 @@ def finish(self): | |
""" | ||
pass | ||
|
||
def get_hello_string(self): | ||
""" Hello string used as first print | ||
""" | ||
pkg = 'mbed-host-tests' | ||
version = pkg_resources.require(pkg)[0].version | ||
return "host test executor ver. " + version | ||
|
||
|
||
class DefaultTestSelectorBase(Test): | ||
"""! Test class with serial port initialization | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ | |
Author: Przemyslaw Wirkus <[email protected]> | ||
""" | ||
|
||
import sys | ||
import json | ||
from time import sleep | ||
from serial import Serial, SerialException | ||
from mbed_host_tests import host_tests_plugins | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
Author: Przemyslaw Wirkus <[email protected]> | ||
""" | ||
|
||
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 | ||
|
||
|
@@ -26,6 +27,7 @@ def main(): | |
@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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters