diff options
author | “Manuel Buil” <mbuil@suse.com> | 2017-03-17 16:10:56 +0100 |
---|---|---|
committer | Brady Johnson <brady.allen.johnson@ericsson.com> | 2017-03-17 16:45:48 +0000 |
commit | 268fc4edfd7560bcf5b5e1248df05face402074a (patch) | |
tree | 1508cf259f0907dd08b55beb03167967789509db | |
parent | 98bb8ed7510d118a680079973aa8f7dce406be37 (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>
-rw-r--r-- | sfc/tests/functest/run_tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
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" |