Skip to content

Commit

Permalink
xls-report.py: write tests in sorted order
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Donchenko committed Jul 4, 2013
1 parent ea054e2 commit 0732905
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/ts/misc/xls-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
import re

from argparse import ArgumentParser
from collections import OrderedDict
from glob import glob
from itertools import ifilter

Expand Down Expand Up @@ -160,7 +159,7 @@ def collect_from(self, xml_path, default_configuration):

if configuration is None: return

module_tests = self.tests.setdefault(module, OrderedDict())
module_tests = self.tests.setdefault(module, {})

for test in run.tests:
test_results = module_tests.setdefault((test.shortName(), test.param()), {})
Expand Down Expand Up @@ -250,7 +249,7 @@ def main():
for module, color in module_colors.iteritems()}

for module, tests in sorted(collector.tests.iteritems()):
for ((test, param), configs) in tests.iteritems():
for ((test, param), configs) in sorted(tests.iteritems()):
sheet.write(row, 0, module, module_styles.get(module, xlwt.Style.default_style))
sheet.write(row, 1, test)

Expand Down

0 comments on commit 0732905

Please sign in to comment.