From 921226493b346d8eca72a254865de3d519377d7b Mon Sep 17 00:00:00 2001 From: peng1 chen Date: Tue, 17 Mar 2020 11:20:32 +0800 Subject: [PATCH] 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 --- scripts/sanitycheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sanitycheck b/scripts/sanitycheck index dd74a96f8a8..83f7323d05e 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -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)