summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sdnvpn/lib/utils.py4
-rw-r--r--sdnvpn/test/functest/run_sdnvpn_tests.py8
2 files changed, 10 insertions, 2 deletions
diff --git a/sdnvpn/lib/utils.py b/sdnvpn/lib/utils.py
index ad0714e..d968010 100644
--- a/sdnvpn/lib/utils.py
+++ b/sdnvpn/lib/utils.py
@@ -213,7 +213,9 @@ def get_installerHandler():
installer_ip = get_installer_ip()
if installer_type not in ["fuel", "apex"]:
- raise ValueError("%s is not supported" % installer_type)
+ logger.warn("installer type %s is neither fuel nor apex."
+ "returning None for installer handler" % installer_type)
+ return None
else:
if installer_type in ["apex"]:
developHandler = DeploymentFactory.get_handler(
diff --git a/sdnvpn/test/functest/run_sdnvpn_tests.py b/sdnvpn/test/functest/run_sdnvpn_tests.py
index 64dffd4..dce54e8 100644
--- a/sdnvpn/test/functest/run_sdnvpn_tests.py
+++ b/sdnvpn/test/functest/run_sdnvpn_tests.py
@@ -81,7 +81,13 @@ class SdnvpnFunctest(base.Feature):
overall_status = "FAIL"
try:
- gather_logs('overall')
+ installer_type = str(os.environ['INSTALLER_TYPE'].lower())
+ if installer_type in ["fuel", "apex"]:
+ gather_logs('overall')
+ else:
+ self.__logger.info("Skipping log gathering because installer"
+ "type %s is neither fuel nor apex" %
+ installer_type)
except Exception as ex:
self.__logger.error(('Something went wrong in the Log gathering.'
'Ex: %s, Trace: %s')