Skip to content

Commit b38f891

Browse files
author
Olli-Pekka Puolitaival
committed
Small fixes based on github comments
1 parent 8a7f890 commit b38f891

File tree

8 files changed

+7
-10
lines changed

8 files changed

+7
-10
lines changed

TEST_APPS/testcases/example/test_cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class Testcase(Bench):
2020
def __init__(self):
2121
self.device = None
22-
Bench.__init__(self,
22+
super(Testcase, self).__init__(self,
2323
name="test_cmdline",
2424
title="Smoke test for command line interface",
2525
status="released",

TEST_APPS/testcases/netsocket/SOCKET_BIND_PORT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, **kwargs):
2525
}
2626

2727
testcase_args.update(kwargs)
28-
Bench.__init__(self, **testcase_args)
28+
super(MultipleTestcase, self).__init__(self, **testcase_args)
2929

3030
def setup(self):
3131
self.command("dut1", "ifup")

TEST_APPS/testcases/netsocket/TCPSERVER_ACCEPT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
#
44
from icetea_lib.bench import Bench
55
from interface import interfaceUp, interfaceDown
6-
from icetea_lib.tools import test_case
76
import threading
87
import time
98

9+
1010
class Testcase(Bench):
1111
def __init__(self):
12-
Bench.__init__(self,
12+
super(Testcase, self).__init__(self,
1313
name="TCPSERVER_ACCEPT",
1414
title = "TCPSERVER_ACCEPT",
1515
purpose = "Test that TCPServer::bind(), TCPServer::listen() and TCPServer::accept() works",

TEST_APPS/testcases/netsocket/TCPSOCKET_ECHOTEST_BURST_SHORT.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
# Copyright (c) 2018, Arm Limited and affiliates.
33
#
44
from icetea_lib.bench import Bench, TestStepFail
5-
from icetea_lib.tools import test_case
65
import random
76
import string
87

98

109
class Testcase(Bench):
1110
def __init__(self):
12-
Bench.__init__(self,
11+
super(Testcase, self).__init__(self,
1312
name="TCPSOCKET_ECHOTEST_BURST_SHORT",
1413
title="TCPSOCKET_ECHOTEST_BURST_SHORT",
1514
purpose="Verify that TCPSocket can send burst of packets to echo server and read incoming packets",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IntelHex>=1.3
66
junit-xml
77
pyYAML
88
requests
9-
mbed-ls>=0.2.13,<2.0
9+
mbed-ls>=1.4.2,==1.*
1010
mbed-host-tests>=1.1.2
1111
mbed-greentea>=0.2.24
1212
beautifulsoup4>=4

tools/test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from __future__ import print_function, division, absolute_import
2222
import sys
2323
import os
24-
import subprocess
2524
import fnmatch
2625

2726
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))

tools/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import random
2929
import argparse
3030
import datetime
31-
import errno
3231
import threading
3332
import ctypes
3433
import functools

tools/toolchains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,4 +1117,4 @@ def report(self):
11171117
u'IAR': IAR
11181118
}
11191119

1120-
TOOLCHAINS = set(TOOLCHAIN_CLASSES.keys())
1120+
TOOLCHAINS = set(TOOLCHAIN_CLASSES.keys())

0 commit comments

Comments
 (0)