diff options
Diffstat (limited to 'testcases')
-rwxr-xr-x | testcases/Controllers/ODL/OpenDaylightTesting.py | 19 |
1 files changed, 7 insertions, 12 deletions
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 |