mirror of
https://github.com/bspeice/libcvautomation
synced 2025-04-21 00:41:29 -04:00
Make sure that the waitfor function uses the tolerance
This commit is contained in:
parent
aff47435a9
commit
bf0e01bb66
@ -508,7 +508,11 @@ waitfor ()
|
|||||||
|
|
||||||
out "waitfor: $1"
|
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 $?
|
return $?
|
||||||
} # ---------- end of function waitfor ----------
|
} # ---------- end of function waitfor ----------
|
||||||
|
Loading…
Reference in New Issue
Block a user