test: fix some typos in checkrenamed()

Due to these typos being present, several tests were passing that should
not have been.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2018-04-19 11:15:26 -07:00
committed by Matthew Johnson
parent 25d3ef658d
commit fde00265e2
+4 -4
View File
@@ -47,7 +47,7 @@ gendataCs() {
}
checkrenamed(){
local flags sh1 ver name fromsha1="bad" tosha1
local flags sha1 ver name fromsha1="bad" tosha1
# Check that $1 is renamed to $2
exec 9< $DIR/www/20/Manifest.test-bundle
# skip the header
@@ -58,11 +58,11 @@ checkrenamed(){
while read -r -u9 flags sha1 ver name
do
case "$flags" in
(?"dr"?) [ "$name" = "$1" ] && fromsha1=$sha1 ;;
(?".r"?) [ "$name" = "$2" ] && tosha1=$sha1 ;;
(?"d.r") [ "$name" = "$1" ] && fromsha1=$sha1 ;;
(?"..r") [ "$name" = "$2" ] && tosha1=$sha1 ;;
esac
done
if [ "$fromsh1" = "$tosha1" ] ; then return 0 ; else return 1 ; fi
if [ "$fromsha1" = "$tosha1" ] ; then return 0 ; else return 1 ; fi
}
# Guts of doing an update