[Lit] Sort previously failed tests early
authorDavid Green <david.green@arm.com>
Wed, 27 Jul 2022 16:55:11 +0000 (17:55 +0100)
committerDavid Green <david.green@arm.com>
Wed, 27 Jul 2022 16:55:11 +0000 (17:55 +0100)
commit7ce39d80a86a4afbcf1be932b6c98b348b5b6549
tree0ac8e751df7f0d336560827df3fa5606924927e9
parent1a6d82b93f6b9101f62238f112f92b07877b8c21
[Lit] Sort previously failed tests early

D98179 added a mechanism to sort tests by test time to run slow tests
early, increasing potential parallelism. It also added a feature where
negative tests would be marked as negative, allowing subsequent test
runs to run them earlier. Unfortunately it never actually stored the
negative time, even if all the other code seemed to be inplace to sort
them early. Luckily the fix seems simple.

Differential Revision: https://reviews.llvm.org/D130570
llvm/utils/lit/lit/TestTimes.py
llvm/utils/lit/tests/Inputs/reorder/.lit_test_times.txt
llvm/utils/lit/tests/Inputs/reorder/fff.txt [new file with mode: 0644]
llvm/utils/lit/tests/reorder.py