Feature Request: Keep test results for intermediate runs

I want to set up retries to help a CI system be more resilient to flaky tests but I also want to still gather information about the flakes to investigate them async. Unfortunately the code at CMake/Source/CTest/cmCTestRunTest.cxx at 432d51a926f4a6112f096314b47484b72a1942a0 · Kitware/CMake · GitHub only keeps track of the test result of the last run of a test and this seems to be what’s captured in --output-junit. It would be great if there was a flag that allowes us to keep information about all intermediate test results.