validate:tools: Do not check if position > duration

This is actually done by the scenario themselve. Instead if it is the
case, we return 0, this way it will timeout if it happens too many times
concecutively
This commit is contained in:
Thibault Saunier 2014-01-10 15:31:01 +01:00
parent 6bd9177205
commit 654bacebc9

View file

@ -228,11 +228,7 @@ def get_current_position(test, max_passed_stop=0.5):
position, duration = _get_position(test)
if position > duration + max_passed_stop:
test.set_result(Result.FAILED,
"The position is reported as > than the"
" duration (position: %d > duration: %d)"
% (position, duration))
return Result.FAILED
return 0
return position