aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-01-17 01:12:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-17 01:12:45 +0000
commitd181f61205869adef1b8763feb531cc3df52669f (patch)
treeac77a1bcf8e97eb200701d395a5670715e6950d7 /functest/opnfv_tests
parenteb793907cee64bbe2519040559b04d47652cabf0 (diff)
parent1ef546ca2464dc9210522026bb95200b6abab47a (diff)
Merge "Fix Rally output retrieval"
Diffstat (limited to 'functest/opnfv_tests')
-rw-r--r--functest/opnfv_tests/openstack/rally/rally.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py
index eefd3eb4..103c3a7e 100644
--- a/functest/opnfv_tests/openstack/rally/rally.py
+++ b/functest/opnfv_tests/openstack/rally/rally.py
@@ -219,8 +219,7 @@ class RallyBase(testcase.TestCase):
def get_cmd_output(proc):
"""Get command stdout."""
result = ""
- while proc.poll() is None:
- line = proc.stdout.readline()
+ for line in proc.stdout:
result += line
return result
@@ -410,8 +409,7 @@ class RallyBase(testcase.TestCase):
success = 0.0
nb_totals = 0
- while proc.poll() is None:
- line = proc.stdout.readline()
+ for line in proc.stdout:
if ("Load duration" in line or
"started" in line or
"finished" in line or