sanitycheck: delete the '\r' char in front of serial output
add lstrip function to delete the '\r' char in front of the serial output from serail readline, because this '\r' will influence the result match function in harness.py. Signed-off-by: peng1 chen <peng1.chen@intel.com>
This commit is contained in:
parent
c1c54b13a6
commit
921226493b
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ class DeviceHandler(Handler):
|
|||
# Just because ser_fileno has data doesn't mean an entire line
|
||||
# is available yet.
|
||||
if serial_line:
|
||||
sl = serial_line.decode('utf-8', 'ignore')
|
||||
sl = serial_line.decode('utf-8', 'ignore').lstrip()
|
||||
logger.debug("DEVICE: {0}".format(sl.rstrip()))
|
||||
|
||||
log_out_fp.write(sl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue