Small fixes based on github comments

pull/7745/head
Olli-Pekka Puolitaival 2018-08-14 15:00:08 +03:00
parent 60911876cd
commit 3b3bed2406
8 changed files with 7 additions and 10 deletions

View File

@ -19,7 +19,7 @@ from icetea_lib.bench import Bench
class Testcase(Bench):
def __init__(self):
self.device = None
Bench.__init__(self,
super(Testcase, self).__init__(self,
name="test_cmdline",
title="Smoke test for command line interface",
status="released",

View File

@ -25,7 +25,7 @@ class MultipleTestcase(Bench):
}
testcase_args.update(kwargs)
Bench.__init__(self, **testcase_args)
super(MultipleTestcase, self).__init__(self, **testcase_args)
def setup(self):
self.command("dut1", "ifup")

View File

@ -3,13 +3,13 @@
#
from icetea_lib.bench import Bench
from interface import interfaceUp, interfaceDown
from icetea_lib.tools import test_case
import threading
import time
class Testcase(Bench):
def __init__(self):
Bench.__init__(self,
super(Testcase, self).__init__(self,
name="TCPSERVER_ACCEPT",
title = "TCPSERVER_ACCEPT",
purpose = "Test that TCPServer::bind(), TCPServer::listen() and TCPServer::accept() works",

View File

@ -2,14 +2,13 @@
# Copyright (c) 2018, Arm Limited and affiliates.
#
from icetea_lib.bench import Bench, TestStepFail
from icetea_lib.tools import test_case
import random
import string
class Testcase(Bench):
def __init__(self):
Bench.__init__(self,
super(Testcase, self).__init__(self,
name="TCPSOCKET_ECHOTEST_BURST_SHORT",
title="TCPSOCKET_ECHOTEST_BURST_SHORT",
purpose="Verify that TCPSocket can send burst of packets to echo server and read incoming packets",

View File

@ -6,7 +6,7 @@ IntelHex>=1.3
junit-xml
pyYAML
requests
mbed-ls>=0.2.13,<2.0
mbed-ls>=1.4.2,==1.*
mbed-host-tests>=1.1.2
mbed-greentea>=0.2.24
beautifulsoup4>=4

View File

@ -21,7 +21,6 @@ TEST BUILD
from __future__ import print_function, division, absolute_import
import sys
import os
import subprocess
import fnmatch
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))

View File

@ -28,7 +28,6 @@ import pprint
import random
import argparse
import datetime
import errno
import threading
import ctypes
import functools

View File

@ -1117,4 +1117,4 @@ TOOLCHAIN_CLASSES = {
u'IAR': IAR
}
TOOLCHAINS = set(TOOLCHAIN_CLASSES.keys())
TOOLCHAINS = set(TOOLCHAIN_CLASSES.keys())