summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2014-07-30 10:50:01 -0700
committerJames Zern <jzern@google.com>2014-07-30 10:50:01 -0700
commitc0348216c300a7f907c3f9ae4f9cebe5b32ba35b (patch)
tree180cb5b0a25d5f7524accb4c95358e09e93cf496
parentd6cf6eb570e8c458d89b5be728d35135dc6e2e08 (diff)
downloadlibvpx-c0348216c300a7f907c3f9ae4f9cebe5b32ba35b.tar
libvpx-c0348216c300a7f907c3f9ae4f9cebe5b32ba35b.tar.gz
libvpx-c0348216c300a7f907c3f9ae4f9cebe5b32ba35b.tar.bz2
libvpx-c0348216c300a7f907c3f9ae4f9cebe5b32ba35b.zip
decode_to_md5.sh: fix local md5 variable assignment
extract only the md5 + quote the result fixes: test/examples.sh: 47: local: img-176x144-0029.i420: bad variable name Change-Id: I81c6a83c8a4e792a520fd7046c8eedcbd4af9a0c
-rwxr-xr-xtest/decode_to_md5.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/decode_to_md5.sh b/test/decode_to_md5.sh
index 6cb7d0e6e..854b74f84 100755
--- a/test/decode_to_md5.sh
+++ b/test/decode_to_md5.sh
@@ -44,8 +44,8 @@ decode_to_md5() {
[ -e "${output_file}" ] || return 1
- local md5_last_frame=$(tail -n1 "${output_file}")
- local actual_md5=$(echo "${md5_last_frame% *}" | tr -d [:space:])
+ local md5_last_frame="$(tail -n1 "${output_file}" | awk '{print $1}')"
+ local actual_md5="$(echo "${md5_last_frame}" | awk '{print $1}')"
[ "${actual_md5}" = "${expected_md5}" ] || return 1
}