summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2023-02-09 10:09:29 +0200
committerSteve Sakoman <steve@sakoman.com>2023-02-18 06:41:49 -1000
commit5346b927a9fba57b2bb41406fcac09cd6369f26c (patch)
treefa78904e25120c2c7b42931686033e3c46fb52f6
parent54dfb8bf6836013ac7fc6112fce9daaf6e719515 (diff)
downloadopenembedded-core-5346b927a9fba57b2bb41406fcac09cd6369f26c.tar.gz
oeqa ssh.py: move output prints to new line
The output from is garbled otherwise and it's not easy to remove debug output form real command output on target. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> (cherry picked from commit 917a70cbc43ac1c70c477b220c4115735457ef04) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/lib/oeqa/core/target/ssh.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py
index f956a7744f..f1b9090bbf 100644
--- a/meta/lib/oeqa/core/target/ssh.py
+++ b/meta/lib/oeqa/core/target/ssh.py
@@ -240,7 +240,7 @@ def SSHCall(command, logger, timeout=None, **opts):
eof = True
else:
output += data
- logger.debug('Partial data from SSH call: %s' % data)
+ logger.debug('Partial data from SSH call:\n%s' % data)
endtime = time.time() + timeout
except InterruptedError:
continue
@@ -256,12 +256,12 @@ def SSHCall(command, logger, timeout=None, **opts):
endtime = time.time() - starttime
lastline = ("\nProcess killed - no output for %d seconds. Total"
" running time: %d seconds." % (timeout, endtime))
- logger.debug('Received data from SSH call %s ' % lastline)
+ logger.debug('Received data from SSH call:\n%s ' % lastline)
output += lastline
else:
output = process.communicate()[0].decode('utf-8', errors='ignore')
- logger.debug('Data from SSH call: %s' % output.rstrip())
+ logger.debug('Data from SSH call:\n%s' % output.rstrip())
options = {
"stdout": subprocess.PIPE,