=== modified file 'doc/changes.rst'
@@ -5,6 +5,8 @@
Version 0.5.10 (UNRELEASED)
===========================
+* Omit the commands we send to the board from the log (as this output is
+ invariably echoed back and so was ending up in the output twice)
.. _version_0_5_9:
=== modified file 'lava_dispatcher/client/master.py'
@@ -258,7 +258,8 @@
def __init__(self, context, config):
super(LavaMasterImageClient, self).__init__(context, config)
cmd = self.device_option("connection_command")
- proc = logging_spawn(cmd, timeout=1200, logfile=self.sio)
+ proc = logging_spawn(cmd, timeout=1200)
+ proc.logfile_read = self.sio
#serial can be slow, races do funny things if you don't increase delay
proc.delaybeforesend=1
self.proc = proc
=== modified file 'lava_dispatcher/job.py'
@@ -137,7 +137,7 @@
try:
for cmd in self.job_data['actions']:
params = cmd.get('parameters', {})
- logging.info("[ACTION-B] Command %s is started with parameters %s." % (cmd['command'],params))
+ logging.info("[ACTION-B] %s is started with %s" % (cmd['command'], params))
metadata = cmd.get('metadata', {})
self.context.test_data.add_metadata(metadata)
action = lava_commands[cmd['command']](self.context)