In fact, the recipe is more relevant for skipped tests (since for failed tests, tests/testsuite.dir/NNN/ is kept by default, whereas for skipped tests it is deleted by default). Here's an update of the proposed patch.