summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-01-22 17:22:03 -0800
committerFabian Bieler <fabianbieler@fastmail.fm>2018-02-05 19:44:16 +0100
commitfb928640a6e837684b35f4cfc8bd243140e20746 (patch)
tree95fc19b67370db9d40402b8c61c580675aaec8ef
parentb15ea345bdb58e4fa7559abb5cc24cd13d9a356b (diff)
framework: use an OrderedDict for subtest storage
This makes the order of the subtests deterministic. Since piglit test binaries are expected to enumerate subtests in the same order that they'll run them this will allow us to know which subtest crashed when there is a crash. Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r--framework/results.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/results.py b/framework/results.py
index 99dd3735b..2a3e0ba78 100644
--- a/framework/results.py
+++ b/framework/results.py
@@ -41,7 +41,7 @@ __all__ = [
class Subtests(collections.MutableMapping):
"""A dict-like object that stores Statuses as values."""
def __init__(self, dict_=None):
- self.__container = {}
+ self.__container = collections.OrderedDict()
if dict_ is not None:
self.update(dict_)