summaryrefslogtreecommitdiffstats
path: root/sdnvpn/test/functest
diff options
context:
space:
mode:
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>2017-10-18 12:22:11 +0200
committerJose Lausuch <jalausuch@suse.com>2017-10-30 14:39:09 +0000
commit55ed0c7bf86effb047d7d64a33cac8dd9d8490ab (patch)
tree053846772e048daa9e6148c6e0f4880f7ef86e3f /sdnvpn/test/functest
parente9ade965ab40c3321b4aab03104e7e211af73d0a (diff)
Gather logs only if fuel or apex installer
Change-Id: I11988ad86a916d1d7251aacf951c6362fda961ba Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> (cherry picked from commit 308dc9989bce115b615fa13ff1dc44080e3a731e)
Diffstat (limited to 'sdnvpn/test/functest')
-rw-r--r--sdnvpn/test/functest/run_sdnvpn_tests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/sdnvpn/test/functest/run_sdnvpn_tests.py b/sdnvpn/test/functest/run_sdnvpn_tests.py
index 140256d..6fa577f 100644
--- a/sdnvpn/test/functest/run_sdnvpn_tests.py
+++ b/sdnvpn/test/functest/run_sdnvpn_tests.py
@@ -85,7 +85,13 @@ class SdnvpnFunctest(testcase.TestCase):
self.stop_time = time.time()
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')