aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author“Manuel Buil” <mbuil@suse.com>2017-03-17 16:10:56 +0100
committerBrady Johnson <brady.allen.johnson@ericsson.com>2017-03-17 16:47:28 +0000
commit2aa568e857f459555e5d2e2deae773d15318468c (patch)
tree62112222a95d7e1c68f6882e75467f8db36a7a3d
parent2346ca714503d69162fc896f1f703b8d6aa7a46c (diff)
Add more logs to the CI
We want to double check if the CI is using the correct tacker plugin version Change-Id: Ib6082014988daee316553d980c5e7f88d316fe8c Signed-off-by: “Manuel Buil” <mbuil@suse.com> (cherry picked from commit 268fc4edfd7560bcf5b5e1248df05face402074a)
-rw-r--r--sfc/tests/functest/run_tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/sfc/tests/functest/run_tests.py b/sfc/tests/functest/run_tests.py
index a066af51..1539fca4 100644
--- a/sfc/tests/functest/run_tests.py
+++ b/sfc/tests/functest/run_tests.py
@@ -106,6 +106,17 @@ def main():
except Exception, e:
logger.error("Exception when executing: %s" % testcase)
logger.error(e)
+ result = 1
+ for node in nodes:
+ if node.get_file("/usr/lib/python2.7/dist-packages/tacker/"
+ "sfc/plugin.py", "/tmp/plugin.py"):
+ node.get_file("/var/log/tacker/tacker-server.log",
+ "/tmp/tacker-server.log")
+ break
+ with open("/tmp/plugin.py") as fd:
+ logger.info(fd.read())
+ with open("/tmp/tacker-server.log") as fd1:
+ logger.info(fd1.read())
end_time = time.time()
duration = end_time - start_time
status = "FAIL"