Re-run failed tests automatically
litest_run_suite()
prints the test case information on failure in the form of e.g.
:: Failure: ../test/litest.c:2466:proximity_out_button_up:uclogic-tablet
:: Failure: ../test/litest.c:2466:proximity_out_button_up:huion-tablet
:: Failure: ../test/litest.c:2466:proximity_out_button_up:aiptek-tablet
litest_fork_subtests()
reads that from the fd and prints it. We could instead parse that information and re-run the tests with effectively -j1
on completion. This could work around some of the issues we're seeing when the machine is under too heavy load and some tests fail due to timeout issues.