From fb1986cd9f45aad7db3813125262adbc4c47f4fe Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 16 Mar 2015 00:43:14 -0400 Subject: [PATCH] Fix pep8 violations in base/run.py Change-Id: Ieda881623913dcf88c34af8dccfe53c966949414 Signed-off-by: Thanh Ha --- test/tools/CSIT_Test/base/run.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/tools/CSIT_Test/base/run.py b/test/tools/CSIT_Test/base/run.py index 1a4dabc23b..28aab41df1 100644 --- a/test/tools/CSIT_Test/base/run.py +++ b/test/tools/CSIT_Test/base/run.py @@ -5,13 +5,14 @@ Authors: Baohua Yang@IBM, Denghui Huang@IBM Updated: 2013-11-07 Usage: Before running the test tool, should - 1. Start 2-layer tree topology network. e.g., in Mininet, run 'sudo mn --controller=remote,ip=127.0.0.1 --mac --topo tree,2'. + 1. Start 2-layer tree topology network. e.g., in Mininet, run + 'sudo mn --controller=remote,ip=127.0.0.1 --mac --topo tree,2'. 2. Configure gateway in the controller web GUI, name = 'gateway', subnet = '10.0.0.254/24'. 3. In Mininet, run 'h1 ping h2' to make sure the network is connected. """ import doctest import os -from restlib import * +from restlib import * # noqa def test_module(module_name): @@ -22,6 +23,7 @@ def test_module(module_name): cmd = 'python -m doctest ' + module_name + '.py' os.system(cmd) + def run(modules=None): ''' Run test cases according to the given modules. @@ -41,6 +43,6 @@ if __name__ == '__main__': doctest.testmod() test_modules = ['switch_manager', 'topology_manager', 'forwarding_rule_manager', 'statistics_manager', 'host_tracker', 'arp_handler', 'forwarding_manager', 'container_manager'] - #test_modules = ['topology_manager'] + # test_modules = ['topology_manager'] run(test_modules) - #run() + # run() -- 2.36.6