From 6bb29e5ea95dac98a3f7b229f029e036154fa12c Mon Sep 17 00:00:00 2001 From: Ashish Pant Date: Tue, 25 Jun 2019 11:26:46 +0530 Subject: tests: Fix logdir creation Signed-off-by: Ashish Pant Creates logdir everytime in start_topology, removed stop_topoloy. Using tgen.stop_topology in test case now. --- .../bgp-basic-functionality-topo1/test_bgp_basic_functionality.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py') diff --git a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py index fd2102dd7c..095ebe3344 100755 --- a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py +++ b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py @@ -59,7 +59,7 @@ from lib.topogen import Topogen, get_topogen from mininet.topo import Topo from lib.common_config import ( - start_topology, stop_topology, write_test_header, + start_topology, write_test_header, write_test_footer, reset_config_on_routers, create_static_routes, verify_rib, verify_admin_distance_for_static_routes ) @@ -135,7 +135,7 @@ def teardown_module(): tgen = get_topogen() # Stop toplogy and Remove tmp files - stop_topology(tgen) + tgen.stop_topology() logger.info("Testsuite end time: {}". format(time.asctime(time.localtime(time.time())))) -- cgit v1.2.3