From 733dbe143cd4d37787cdb167021129b9ffac78fa Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 13 Oct 2016 17:27:12 +0200 Subject: Stop copying obsolete files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It completes the previous review [1] which removes several robot files. [1] https://gerrit.opnfv.org/gerrit/#/c/23069/ Change-Id: I64c43e6833af1ac468933e09d48fecef812da697 Signed-off-by: Cédric Ollivier --- testcases/Controllers/ODL/OpenDaylightTesting.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'testcases') diff --git a/testcases/Controllers/ODL/OpenDaylightTesting.py b/testcases/Controllers/ODL/OpenDaylightTesting.py index 173de87f9..35a2ee117 100755 --- a/testcases/Controllers/ODL/OpenDaylightTesting.py +++ b/testcases/Controllers/ODL/OpenDaylightTesting.py @@ -52,18 +52,13 @@ class ODLTestCases: def copy_opnf_testcases(cls): opnfv_testcases_dir = (os.path.dirname(os.path.abspath(__file__)) + "/custom_tests/neutron/") - files = [opnfv_testcases_dir + "001__reachability.robot", - opnfv_testcases_dir + "040__delete_ports.robot", - opnfv_testcases_dir + "050__delete_subnets.robot", - opnfv_testcases_dir + "060__delete_networks.robot"] - for f in files: - try: - shutil.copy(f, cls.neutron_suite_dir) - except IOError as e: - cls.logger.error( - "Cannot copy OPNFV's testcases to ODL directory: " - "%s" % str(e)) - return False + file = opnfv_testcases_dir + "001__reachability.robot" + try: + shutil.copy(file, cls.neutron_suite_dir) + except IOError as e: + cls.logger.error( + "Cannot copy OPNFV's testcase to ODL directory: %s" % str(e)) + return False return True @classmethod -- cgit 1.2.3-korg