summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKevin Rocard <kevinx.rocard@intel.com>2013-06-10 16:00:08 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:04:00 +0100
commitea87422e14735633cb8e28de114a18e22eaa82fb (patch)
tree916b554db25288dc526501ec71e0051655c0774d /tools
parentd077c557e360615a67d97ee249260a1ef7919f09 (diff)
downloadexternal_parameter-framework-ea87422e14735633cb8e28de114a18e22eaa82fb.zip
external_parameter-framework-ea87422e14735633cb8e28de114a18e22eaa82fb.tar.gz
external_parameter-framework-ea87422e14735633cb8e28de114a18e22eaa82fb.tar.bz2
[Coverage] Reset criterion on it's recreation
BZ: 115218 The script was not handling criterion recreation (usually on PFW restart). Reset criterion on it's recreation. Change-Id: I169717c1c62f89ce81b21909f3ee4b981d5e91d8 Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com> Reviewed-on: http://android.intel.com:8080/112713 Reviewed-by: Denneulin, Guillaume <guillaume.denneulin@intel.com> Reviewed-by: Gonzalve, Sebastien <sebastien.gonzalve@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: Dixon, CharlesX <charlesx.dixon@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/coverage.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/coverage.py b/tools/coverage.py
index 4f87b27..9ce94e6 100755
--- a/tools/coverage.py
+++ b/tools/coverage.py
@@ -761,12 +761,22 @@ class ParsePFWlog():
" with current state: " + str(currentcriterionStateList) +
", possible states:" + str(criterionStateList))
- self.criteria.addChild(Criterion(
+ try:
+ self.criteria.addChild(Criterion(
criterionName,
criterionIsInclusif,
criterionStateList,
currentcriterionStateList
))
+ except self.criteria.DuplicatedCriterionError as ex:
+ logger.debug(ex)
+ logger.warning("Reseting criterion %s. Did you reset the PFW ?" % criterionName)
+ self.criteria.operationOnChild(
+ [criterionName],
+ lambda criterion: criterion.reset()
+ )
+
+
def _changingCriterion(self, matchChangingCriterion):
# Unpack