summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2016-10-13 17:27:12 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-02-13 18:33:22 +0100
commit398fea2a01696824e1f705a30a595f618f71e88a (patch)
tree1c3e2b647f86edb2d525d3338b50a87750ae5d00
parentf997334b94759d7bc50455121df810cc4a5b67b1 (diff)
Stop copying obsolete files
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 <cedric.ollivier@orange.com> (cherry picked from commit 733dbe143cd4d37787cdb167021129b9ffac78fa)
-rwxr-xr-xtestcases/Controllers/ODL/OpenDaylightTesting.py19
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