From: Matt Joiner Date: Wed, 9 Feb 2022 22:20:23 +0000 (+1100) Subject: fs/test.sh: Fail if hash does not match X-Git-Tag: v1.41.0~9 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3181b6d6675b8d72a8c3d99c0683edfeb1bc5acd;p=btrtrc.git fs/test.sh: Fail if hash does not match --- diff --git a/fs/test.sh b/fs/test.sh index bcd5064e..4e0aebc9 100755 --- a/fs/test.sh +++ b/fs/test.sh @@ -13,7 +13,8 @@ trap 'set +e; sudo umount -f mnt' EXIT #file="$debian_file" file=Sintel/Sintel.mp4 while [ ! -e "mnt/$file" ]; do sleep 1; done -pv -f "mnt/$file" | md5sum -# expect e221f43f4fdd409250908fc4305727d4 +pv -f "mnt/$file" | md5sum -c <(cat <