sort results, like this function says it does
this function is called _sortResult, however it does nothing of the kind. sorting the results is useful for finding things, so lets do that. Change-Id: I6a1843a2014fa4dc21df6b8f6f7bf09091c1a9ba Reviewed-on: https://review.openstack.org/20209 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
e6a27b8537
commit
43a7951b34
@ -605,7 +605,9 @@ class HtmlOutput(unittest.TestResult):
|
||||
(n, inner_test, o, e))
|
||||
else:
|
||||
self._add_cls(rmap, classes, t, (n, t, o, e))
|
||||
r = [(cls, rmap[str(cls)]) for cls in classes]
|
||||
classort = lambda s: str(s)
|
||||
sortedclasses = sorted(classes, key=classort)
|
||||
r = [(cls, rmap[str(cls)]) for cls in sortedclasses]
|
||||
return r
|
||||
|
||||
def _add_cls(self, rmap, classes, test, data_tuple):
|
||||
|
Loading…
x
Reference in New Issue
Block a user