[lit] Do not forget test times for tests that weren't executed
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 22 Mar 2021 12:24:52 +0000 (15:24 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 22 Mar 2021 12:26:00 +0000 (15:26 +0300)
commit233db43967359cc5576b6c7629fa4fcd1d87283a
tree9e5ce155d3aef001191fa9f37091bdab8f70d43e
parent00881644774d6a7cd0465c2318a43d6849b931c8
[lit] Do not forget test times for tests that weren't executed

Even though we have read the times before,
we intentionally forget about it for performance reasons.
But that means we also forget all the times for the tests
that weren't executed this time. This is mildly inconvenient.

So, when recording the new times, first re-read the old times,
and update times for the tests that were executed,
thus preserving all original times, too.
llvm/utils/lit/lit/TestTimes.py
llvm/utils/lit/tests/reorder.py