From: Kyr Shatskyy Date: Thu, 14 Oct 2021 14:40:15 +0000 (+0200) Subject: misc/sh: do not strip output from left X-Git-Tag: 1.2.0~219^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1699%2Fhead;p=teuthology.git misc/sh: do not strip output from left We want to see output of commands with nice formatting, for example when there are yaml data Signed-off-by: Kyr Shatskyy --- diff --git a/teuthology/misc.py b/teuthology/misc.py index d88d19b6c..2432d46d5 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -1308,7 +1308,7 @@ def sh(command, log_limit=1024, cwd=None, env=None): for line in proc.stdout: line = line.decode() lines.append(line) - line = line.strip() + line = line.rstrip() if len(line) > log_limit: truncated = True log.debug(line[:log_limit] +