From: Ondrej Lichtner <olichtne(a)redhat.com>
Store measurement results in an OrderedDict so that iteration during
reporting or evaluation is deterministic between recipe executions.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/RecipeCommon/Perf/Recipe.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lnst/RecipeCommon/Perf/Recipe.py b/lnst/RecipeCommon/Perf/Recipe.py
index 13fc35b..e4d9d42 100644
--- a/lnst/RecipeCommon/Perf/Recipe.py
+++ b/lnst/RecipeCommon/Perf/Recipe.py
@@ -1,4 +1,5 @@
import logging
+from collections import OrderedDict
from lnst.Common.LnstError import LnstError
from lnst.Controller.Recipe import BaseRecipe
@@ -32,7 +33,7 @@ class RecipeConf(object):
class RecipeResults(object):
def __init__(self, perf_conf):
self._perf_conf = perf_conf
- self._results = {}
+ self._results = OrderedDict()
@property
def perf_conf(self):
--
2.21.0