From 6e46af35376e25ee58069f651e2ec5ff765d3a09 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Tue, 19 Jul 2016 15:18:28 +0200 Subject: Show real time tempest test execution JIRA: FUNCTEST-375 Change-Id: I4f0cb68639b927f2980389d9331ec260605c8caf Signed-off-by: jose.lausuch --- utils/functest_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/functest_utils.py') diff --git a/utils/functest_utils.py b/utils/functest_utils.py index 9a19eb4ca..b51a1c868 100644 --- a/utils/functest_utils.py +++ b/utils/functest_utils.py @@ -244,7 +244,8 @@ def execute_command(cmd, logger=None, print(msg_exec) p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) while True: - line = p.stdout.readline().replace('\n', '') + output = p.stdout.readline() + line = output.replace('\n', '') if not line: break if logger: -- cgit 1.2.3-korg