The existing code compares strings and tuples which, based on what seems
to be happening, is at best counterintuitive and at worst
non-deterministic.
Signed-off-by: Samuel Just <sjust@redhat.com>
Generates the text description of the test represented by result
"""
if type(result) is frozenset:
- ret = []
- for i in sorted(result):
- ret.append(generate_desc(joinf, i))
+ ret = sorted([generate_desc(joinf, i) for i in result])
return '{' + ' '.join(ret) + '}'
elif type(result) is tuple:
(item, children) = result