Make sure that the waitfor function uses the tolerance

This commit is contained in:
Bradlee Speice 2012-07-20 13:39:49 -04:00
parent aff47435a9
commit bf0e01bb66

View File

@ -508,7 +508,11 @@ waitfor ()
out "waitfor: $1"
eval '$CVAINPUT --timeout $TIMEOUT -s "waitfor $1" >> $OUTFILE'
if [ -n "$USE_SANE_TOLERANCE" ]; then
eval '$CVAINPUT -o $TOLERANCE --search-method $SEARCH_METHOD --timeout $TIMEOUT -s "waitfor $1" >> $OUTFILE'
else
eval '$CVAINPUT -t $TOLERANCE --search-method $SEARCH_METHOD --timeout $TIMEOUT -s "waitfor $1" >> $OUTFILE'
fi
return $?
} # ---------- end of function waitfor ----------