Refactor Mbed drivers host-tests to use standalone htrun greentea

- - Updated drivers host-tests to import from htrun
pull/14755/head
Rajkumar Kanagaraj 2021-06-09 02:49:31 -07:00
parent e377383f6d
commit 2d038b75e1
10 changed files with 12 additions and 12 deletions

View File

@ -17,7 +17,7 @@ limitations under the License.
import uuid import uuid
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
class Device_Echo(BaseHostTest): class Device_Echo(BaseHostTest):

View File

@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import time import time
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
DEFAULT_SYNC_DELAY = 4.0 DEFAULT_SYNC_DELAY = 4.0

View File

@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
MSG_KEY_ECHO_MESSAGE = "echo_message" MSG_KEY_ECHO_MESSAGE = "echo_message"

View File

@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import time import time
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
DEFAULT_SYNC_DELAY = 4.0 DEFAULT_SYNC_DELAY = 4.0

View File

@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
import time import time

View File

@ -16,7 +16,7 @@ limitations under the License.
""" """
import collections import collections
import threading import threading
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
TestCaseData = collections.namedtuple('TestCaseData', ['index', 'data_to_send']) TestCaseData = collections.namedtuple('TestCaseData', ['index', 'data_to_send'])

View File

@ -17,7 +17,7 @@ limitations under the License.
""" """
from __future__ import print_function from __future__ import print_function
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
from argparse import ArgumentParser from argparse import ArgumentParser
import time import time
import sys import sys

View File

@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
from mbed_host_tests import BaseHostTest from htrun import BaseHostTest
import time import time
import psutil import psutil
import tempfile import tempfile

View File

@ -21,7 +21,7 @@ import time
import threading import threading
import uuid import uuid
import sys import sys
import mbed_host_tests import htrun
import usb.core import usb.core
from usb.util import ( from usb.util import (
CTRL_IN, CTRL_IN,
@ -218,7 +218,7 @@ def raise_if_false(expression, text):
raise RuntimeError(text) raise RuntimeError(text)
class USBHIDTest(mbed_host_tests.BaseHostTest): class USBHIDTest(htrun.BaseHostTest):
"""Host side test for USB device HID class.""" """Host side test for USB device HID class."""
@staticmethod @staticmethod

View File

@ -25,7 +25,7 @@ import sys
import serial import serial
import serial.tools.list_ports as stlp import serial.tools.list_ports as stlp
import six import six
import mbed_host_tests import htrun
MSG_KEY_DEVICE_READY = 'ready' MSG_KEY_DEVICE_READY = 'ready'
@ -90,7 +90,7 @@ def retry_fun_call(fun, num_retries=3, retry_delay=0.0):
raise RetryError(err_msg.format(final_err, num_retries)) raise RetryError(err_msg.format(final_err, num_retries))
class USBSerialTest(mbed_host_tests.BaseHostTest): class USBSerialTest(htrun.BaseHostTest):
"""Host side test for USB CDC & Serial classes.""" """Host side test for USB CDC & Serial classes."""
_BYTESIZES = { _BYTESIZES = {