aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack
diff options
context:
space:
mode:
authorJuha Kosonen <juha.kosonen@nokia.com>2018-01-16 16:45:46 +0200
committerJuha Kosonen <juha.kosonen@nokia.com>2018-01-16 16:45:46 +0200
commit1ef546ca2464dc9210522026bb95200b6abab47a (patch)
treec0d2e32086ad0b3ce8c7c33b889a93cad340a590 /functest/opnfv_tests/openstack
parent12c99c5f3fef126283e3a9795c4c1d436cc7846f (diff)
Fix Rally output retrieval
Read stdout until nothing left instead of stopping once the child process is terminated. Change-Id: I46a2eb93fd614e2e7ff676727eb9dc132c29d03f Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
Diffstat (limited to 'functest/opnfv_tests/openstack')
-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