From 654bacebc9bbc46200c8c603e84d187cd8dd0b0e Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 10 Jan 2014 15:31:01 +0100 Subject: [PATCH] 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 --- validate/tools/launcher/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/validate/tools/launcher/utils.py b/validate/tools/launcher/utils.py index 8ae35bac08..d114e3f93c 100644 --- a/validate/tools/launcher/utils.py +++ b/validate/tools/launcher/utils.py @@ -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