aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-08-26 04:09:10 +0000
committerLinda Wang <wangwulin@huawei.com>2017-08-26 04:09:10 +0000
commite069ed9749d0b6da198dda5aea31c2e19bc24af3 (patch)
tree829abf06120eb66fcc80f125f3529411c2b57756 /functest/opnfv_tests
parentaf86e67845ff7d074d389aa54cd4c3744d037348 (diff)
Add log info of refstack tests into functest.log
Change-Id: I9edf555ba17b491768fbe298e65c3b11b341d76e Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/opnfv_tests')
-rw-r--r--functest/opnfv_tests/openstack/refstack_client/refstack_client.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/refstack_client/refstack_client.py b/functest/opnfv_tests/openstack/refstack_client/refstack_client.py
index 4f71b5f5..d4a1f072 100644
--- a/functest/opnfv_tests/openstack/refstack_client/refstack_client.py
+++ b/functest/opnfv_tests/openstack/refstack_client/refstack_client.py
@@ -100,6 +100,14 @@ class RefstackClient(testcase.TestCase):
try:
with open(os.path.join(conf_utils.REFSTACK_RESULTS_DIR,
"refstack.log"), 'r') as logfile:
+ for line in logfile.readlines():
+ if 'Tests' in line:
+ break
+ if re.search(r"\} tempest\.", line):
+ LOGGER.info(line.replace('\n', ''))
+
+ with open(os.path.join(conf_utils.REFSTACK_RESULTS_DIR,
+ "refstack.log"), 'r') as logfile:
output = logfile.read()
for match in re.findall(r"Ran: (\d+) tests in (\d+\.\d{4}) sec.",