Skip to content

Commit

Permalink
fix test validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsnop committed Apr 9, 2017
1 parent 513a699 commit 96864d6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for i in 000; do
done
}

for i in $(seq 0 25) ; do
for i in $(seq 0 30) ; do
ret[$i]=0
done

Expand All @@ -30,6 +30,7 @@ mysql -utravis < test005.src.sql; ret[((index++))]=$?
mysql -utravis < test006.src.sql; ret[((index++))]=$?
mysql -utravis < test008.src.sql; ret[((index++))]=$?
mysql -utravis < test009.src.sql; ret[((index++))]=$?
mysql -utravis < test010.src.sql; ret[((index++))]=$?

checksum_test001 > test001.src.checksum
checksum_test002 > test002.src.checksum
Expand Down Expand Up @@ -127,14 +128,15 @@ rm mysqldump* 2> /dev/null

echo "Done $index tests"

total=0
for i in $(seq 0 25) ; do
retvalue=0
for i in $(seq 0 30) ; do
if [[ ${ret[$i]} -ne 0 ]]; then
echo "test $i returned ${ret[$i]}"
retvalue=${ret[$i]}
fi
total=$((${ret[$i]} + $total))
# total=$((${ret[$i]} + $total))
done

echo "Exiting with code $total"
echo "Exiting with code $retvalue"

exit $total
exit $retvalue

0 comments on commit 96864d6

Please sign in to comment.