[lit] NFC: Move the flaky test logic to _runShTest
authorLouis Dionne <ldionne@apple.com>
Thu, 26 Mar 2020 15:04:24 +0000 (11:04 -0400)
committerLouis Dionne <ldionne@apple.com>
Fri, 27 Mar 2020 13:32:58 +0000 (09:32 -0400)
commit08d5426981595485c47682ecc57091541e41c674
treef7c7c501981575d56dac94aee98cdf13ebfe3652
parentfaf415a1dec1b7f500b6938152dcd6b5a0845e4a
[lit] NFC: Move the flaky test logic to _runShTest

This minor refactoring allows reducing the amount of processing that
is duplicated when we re-run a flaky test. It also has the nice
side effect that libc++'s current test format supports flaky .sh.cpp
tests, because those are built on top of _runShTest, not executeShTest.
llvm/utils/lit/lit/TestRunner.py