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:
parent
6bd9177205
commit
654bacebc9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user