From 268fc4edfd7560bcf5b5e1248df05face402074a Mon Sep 17 00:00:00 2001 From: “Manuel Buil” Date: Fri, 17 Mar 2017 16:10:56 +0100 Subject: Add more logs to the CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to double check if the CI is using the correct tacker plugin version Change-Id: Ib6082014988daee316553d980c5e7f88d316fe8c Signed-off-by: “Manuel Buil” --- sfc/tests/functest/run_tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sfc/tests/functest/run_tests.py b/sfc/tests/functest/run_tests.py index 86e36b56..771f2c62 100644 --- a/sfc/tests/functest/run_tests.py +++ b/sfc/tests/functest/run_tests.py @@ -109,6 +109,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" -- cgit 1.2.3-korg