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): class Testcase(Bench):
def __init__(self): def __init__(self):
self.device = None self.device = None
Bench.__init__(self, super(Testcase, self).__init__(self,
name="test_cmdline", name="test_cmdline",
title="Smoke test for command line interface", title="Smoke test for command line interface",
status="released", status="released",

View File

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

View File

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

View File

@ -2,14 +2,13 @@
# Copyright (c) 2018, Arm Limited and affiliates. # Copyright (c) 2018, Arm Limited and affiliates.
# #
from icetea_lib.bench import Bench, TestStepFail from icetea_lib.bench import Bench, TestStepFail
from icetea_lib.tools import test_case
import random import random
import string import string
class Testcase(Bench): class Testcase(Bench):
def __init__(self): def __init__(self):
Bench.__init__(self, super(Testcase, self).__init__(self,
name="TCPSOCKET_ECHOTEST_BURST_SHORT", name="TCPSOCKET_ECHOTEST_BURST_SHORT",
title="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", 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 junit-xml
pyYAML pyYAML
requests requests
mbed-ls>=0.2.13,<2.0 mbed-ls>=1.4.2,==1.*
mbed-host-tests>=1.1.2 mbed-host-tests>=1.1.2
mbed-greentea>=0.2.24 mbed-greentea>=0.2.24
beautifulsoup4>=4 beautifulsoup4>=4

View File

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

View File

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