I have a Perl test script written using Test::More. Right before exiting, and if all tests passed, I'd like to perform some cleanup actions. If any tests failed, I want to leave everything in place for troubleshooting.
Is there a flag within Test::More, or some other best practice within a single test script, to tell if "all is well" once the tests themselves are complete?