mirror of https://github.com/ARMmbed/mbed-os.git
Add in a couple of missed conversions
parent
c223ac99b3
commit
23b12f4d1b
|
@ -18,7 +18,7 @@ from __future__ import print_function
|
||||||
|
|
||||||
from sys import stdout
|
from sys import stdout
|
||||||
|
|
||||||
class DefaultAuto():
|
class DefaultAuto(object):
|
||||||
""" Simple, basic host test's test runner waiting for serial port
|
""" Simple, basic host test's test runner waiting for serial port
|
||||||
output from MUT, no supervision over test running in MUT is executed.
|
output from MUT, no supervision over test running in MUT is executed.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
class DetectPlatformTest():
|
class DetectPlatformTest(object):
|
||||||
PATTERN_MICRO_NAME = "Target '(\w+)'"
|
PATTERN_MICRO_NAME = "Target '(\w+)'"
|
||||||
re_detect_micro_name = re.compile(PATTERN_MICRO_NAME)
|
re_detect_micro_name = re.compile(PATTERN_MICRO_NAME)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class DevNullTest():
|
class DevNullTest(object):
|
||||||
|
|
||||||
def check_readline(self, selftest, text):
|
def check_readline(self, selftest, text):
|
||||||
""" Reads line from serial port and checks if text was part of read string
|
""" Reads line from serial port and checks if text was part of read string
|
||||||
|
|
|
@ -19,7 +19,7 @@ import sys
|
||||||
import uuid
|
import uuid
|
||||||
from sys import stdout
|
from sys import stdout
|
||||||
|
|
||||||
class EchoTest():
|
class EchoTest(object):
|
||||||
|
|
||||||
# Test parameters
|
# Test parameters
|
||||||
TEST_SERIAL_BAUDRATE = 115200
|
TEST_SERIAL_BAUDRATE = 115200
|
||||||
|
|
|
@ -18,7 +18,7 @@ limitations under the License.
|
||||||
import re
|
import re
|
||||||
from time import time, strftime, gmtime
|
from time import time, strftime, gmtime
|
||||||
|
|
||||||
class RTCTest():
|
class RTCTest(object):
|
||||||
PATTERN_RTC_VALUE = "\[(\d+)\] \[(\d+-\d+-\d+ \d+:\d+:\d+ [AaPpMm]{2})\]"
|
PATTERN_RTC_VALUE = "\[(\d+)\] \[(\d+-\d+-\d+ \d+:\d+:\d+ [AaPpMm]{2})\]"
|
||||||
re_detect_rtc_value = re.compile(PATTERN_RTC_VALUE)
|
re_detect_rtc_value = re.compile(PATTERN_RTC_VALUE)
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import print_function
|
||||||
# Be sure that the tools directory is in the search path
|
# Be sure that the tools directory is in the search path
|
||||||
import sys
|
import sys
|
||||||
from os.path import join, abspath, dirname
|
from os.path import join, abspath, dirname
|
||||||
|
|
|
@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import print_function
|
||||||
try:
|
try:
|
||||||
from SocketServer import BaseRequestHandler, UDPServer
|
from SocketServer import BaseRequestHandler, UDPServer
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue