HomePhabricator

[LNT] Python 3 support: stable showtests output

Description

[LNT] Python 3 support: stable showtests output

lnt showtests output depends on the iteration order of a set, which has
no guarantee whatsoever. This makes the result of test
tests/lnttool/showtests.shtest unstable in particular accross Python 2
and 3. This commit makes the lnt.tests constructor return a new sorted
list instead of the set, thus guaranteeing a stable output of lnt
showtests. It also lists tests in alphabetical order which makes it
nicer for users.

Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls

Reviewed By: cmatthews

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D68220

Details

Committed
thopreOct 10 2019, 3:35 AM
Reviewer
cmatthews
Differential Revision
D68220: [LNT] Python 3 support: stable showtests output
Parents
rL374304: [LNT] Python 3 support: fix report version literal
Branches
Unknown
Tags
Unknown