diff mbox

[U-Boot,3/4] test/fs: strip carriage-return from sandbox output

Message ID 4caad071784c40f48270349911b62f4f@rwthex-w2-b.rwth-ad.de
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Stefan Brüns Aug. 9, 2016, 10:44 p.m. UTC
DM added carriage-returns to every newline. Strip everything after the
32 character long mdsum.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
---
 test/fs/fs-test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/fs/fs-test.sh b/test/fs/fs-test.sh
index 043e5d0..171b1de 100755
--- a/test/fs/fs-test.sh
+++ b/test/fs/fs-test.sh
@@ -402,7 +402,7 @@  check_md5() {
 	# the 7th field is the actual md5
 	md5_src=`grep -A3 "$1" "$2" | grep "md5 for"`
 	md5_src=($md5_src)
-	md5_src=${md5_src[6]}
+	md5_src=${md5_src[6]:0:32}
 
 	# The md5 list, each line is of the form:
 	# - <md5>