workaround order of env settings to all ODL tests to be run 79/1279/1
authorMorgan Richomme <morgan.richomme@orange.com>
Mon, 24 Aug 2015 09:04:42 +0000 (11:04 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 24 Aug 2015 09:04:42 +0000 (11:04 +0200)
JIRA: FUNCTEST-39

Change-Id: I9d9ad0d9916da7927dace7b968c975c99032738a
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
testcases/config_functest.py

index 3c60834..9268aa6 100644 (file)
@@ -90,6 +90,12 @@ def action_start():
         logger.debug("Cleaning possible functest environment leftovers.")
         action_clean()
 
+        logger.info("Installing ODL environment...")
+        if not install_odl():
+            logger.error("There has been a problem while installing Robot.")
+            action_clean()
+            exit(-1)
+
         logger.info("Starting installation of functest environment")
         logger.info("Installing Rally...")
         if not install_rally():
@@ -97,12 +103,6 @@ def action_start():
             action_clean()
             exit(-1)
 
-        logger.info("Installing ODL environment...")
-        if not install_odl():
-            logger.error("There has been a problem while installing Robot.")
-            action_clean()
-            exit(-1)
-
         # Create result folder under functest if necessary
         if not os.path.exists(RALLY_RESULT_DIR):
             os.makedirs(RALLY_RESULT_DIR)