summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2017-03-08 19:40:09 +0100
committerboucherv <valentin.boucher@orange.com>2017-03-08 19:40:09 +0100
commit946083ad05e98c249e0847280c0e3ebdce9f882c (patch)
tree9b948abd15ae5912953e0bfcbd2b53b32f727bbd
parent68dbfb326dbfa6086ebfd36736250021b20ed5f7 (diff)
Improve error log into vnf test step
Change-Id: Ied92224bc80ab4e02611e7b1f4bf33f276914e89 Signed-off-by: boucherv <valentin.boucher@orange.com>
-rw-r--r--functest/core/vnf_base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/functest/core/vnf_base.py b/functest/core/vnf_base.py
index 9438dca10..daf8b8061 100644
--- a/functest/core/vnf_base.py
+++ b/functest/core/vnf_base.py
@@ -79,7 +79,8 @@ class VnfOnBoardingBase(base.TestcaseBase):
self.details['vnf']['result'] = res_deploy_vnf['result']
self.details['vnf']['duration'] = round(
vnf_ready_time - orchestrator_ready_time, 1)
- except:
+ except Exception:
+ self.logger.error("Error during VNF deployment", exc_info=True)
raise Exception("Error during VNF deployment")
# Test VNF
@@ -91,7 +92,8 @@ class VnfOnBoardingBase(base.TestcaseBase):
self.details['test_vnf']['result'] = res_test_vnf['result']
self.details['test_vnf']['duration'] = round(
test_vnf_done_time - vnf_ready_time, 1)
- except:
+ except Exception:
+ self.logger.error("Error when running VNF tests", exc_info=True)
raise Exception("Error when running VNF tests")
# Clean the system