mirror of https://github.com/ARMmbed/mbed-os.git
Host test plugins: refactored TestResults class to HostTestResults name
parent
c0134d66fb
commit
00904b5f24
|
@ -18,7 +18,7 @@ limitations under the License.
|
||||||
import sys
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
from sys import stdout
|
from sys import stdout
|
||||||
from host_test import TestResults, Test
|
from host_test import HostTestResults, Test
|
||||||
|
|
||||||
|
|
||||||
class EchoTest(Test):
|
class EchoTest(Test):
|
||||||
|
@ -28,7 +28,7 @@ class EchoTest(Test):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# Constructors
|
# Constructors
|
||||||
TestResults.__init__(self)
|
HostTestResults.__init__(self)
|
||||||
Test.__init__(self)
|
Test.__init__(self)
|
||||||
|
|
||||||
# Test parameters
|
# Test parameters
|
||||||
|
|
|
@ -214,7 +214,7 @@ class Mbed:
|
||||||
self.serial.flushOutput()
|
self.serial.flushOutput()
|
||||||
|
|
||||||
|
|
||||||
class TestResults:
|
class HostTestResults:
|
||||||
""" Test results set by host tests
|
""" Test results set by host tests
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -226,7 +226,7 @@ class TestResults:
|
||||||
self.RESULT_IOERR_COPY = "ioerr_copy"
|
self.RESULT_IOERR_COPY = "ioerr_copy"
|
||||||
|
|
||||||
|
|
||||||
class Test(TestResults):
|
class Test(HostTestResults):
|
||||||
""" Base class for host test's test runner
|
""" Base class for host test's test runner
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -282,7 +282,7 @@ class DefaultTest(Test):
|
||||||
""" Test class with serial port initialization
|
""" Test class with serial port initialization
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
TestResults.__init__(self)
|
HostTestResults.__init__(self)
|
||||||
Test.__init__(self)
|
Test.__init__(self)
|
||||||
serial_init_res = self.mbed.init_serial()
|
serial_init_res = self.mbed.init_serial()
|
||||||
if not serial_init_res:
|
if not serial_init_res:
|
||||||
|
|
Loading…
Reference in New Issue