diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh index b0a541e207..fe97d3a04d 100755 --- a/tests/codec-regression.sh +++ b/tests/codec-regression.sh @@ -38,7 +38,7 @@ target_crcfile="$target_datadir/$this.crc" if [ X"`echo | md5sum 2> /dev/null`" != X ]; then do_md5sum() { md5sum -b $1; } elif [ X"`echo | md5 2> /dev/null`" != X ]; then - do_md5sum() { md5 -r $1 | sed 's# \**\./# *./#'; } + do_md5sum() { md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; } elif [ -x /sbin/md5 ]; then do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; } else