summaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorManuel Buil <manuel.buil@ericsson.com>2016-10-20 11:44:57 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2016-10-20 11:43:11 +0000
commitbe68c38511a71e0dde07fe78aeb79e8dff874819 (patch)
treec0bdaeca8b50305b484a59bbcecb8f579d547bb0 /testcases
parenta29b97eb7157e43455a28416477bbdfb155f0aac (diff)
Added more logs to track better errors
Apparently in the CI, the delete.sh script is not executed and we want to know why Change-Id: Iefbeb7f0222b3ea9664f5b03c6e0a5fbaaaa3a1f Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit 782c511c6cc1758c0a84857c3c23cf05b4b3791f)
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/features/sfc/sfc.py2
-rwxr-xr-xtestcases/features/sfc/sfc_colorado1.py12
2 files changed, 9 insertions, 5 deletions
diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py
index 8905b5607..8fd68bc3f 100755
--- a/testcases/features/sfc/sfc.py
+++ b/testcases/features/sfc/sfc.py
@@ -209,7 +209,7 @@ def main():
# STARTING SECOND VM (server) ###
# boot INTANCE
- logger.info("Creating instance '%s'..." % INSTANCE_NAME)
+ logger.info("Creating instance '%s'..." % INSTANCE_NAME_2)
logger.debug(
"Configuration:\n name=%s \n flavor=%s \n image=%s \n "
"network=%s \n" % (INSTANCE_NAME, FLAVOR, image_id, network_id))
diff --git a/testcases/features/sfc/sfc_colorado1.py b/testcases/features/sfc/sfc_colorado1.py
index 28b8c35dd..a1cf8a871 100755
--- a/testcases/features/sfc/sfc_colorado1.py
+++ b/testcases/features/sfc/sfc_colorado1.py
@@ -216,7 +216,7 @@ def main():
# STARTING SECOND VM (server) ###
# boot INTANCE
- logger.info("Creating instance '%s'..." % INSTANCE_NAME)
+ logger.info("Creating instance '%s'..." % INSTANCE_NAME_2)
logger.debug(
"Configuration:\n name=%s \n flavor=%s \n image=%s \n "
"network=%s \n" % (INSTANCE_NAME, FLAVOR, image_id, network_id))
@@ -521,10 +521,14 @@ def main():
" :) \n" + '\033[0m')
break
else:
- logger.debug("Iterating again!")
+ logger.info("Iterating again!")
delete = ("bash delete.sh")
- subprocess.call(delete, shell=True, stderr=subprocess.PIPE)
- time.sleep(10)
+ try:
+ subprocess.call(delete, shell=True, stderr=subprocess.PIPE)
+ time.sleep(10)
+ except Exception, e:
+ logger.error("Problem when executing the delete.sh")
+ logger.error("Problem %s" % e)
if args.report:
stop_time = time.time()