aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-08-28 07:11:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-28 07:11:41 +0000
commit78be021d910088aeced1b62c9d00dffa33f74ca3 (patch)
treef7e609db235ddc6b0223d3665d1bb493b6a40906 /functest
parent4e39ca947fcb30ab176bf3a2405a5b71965497f7 (diff)
parente069ed9749d0b6da198dda5aea31c2e19bc24af3 (diff)
Merge "Add log info of refstack tests into functest.log"
Diffstat (limited to 'functest')
-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.",