Jeff King [off-list ref] writes:
I really liked this the first time I ran "make -j4 test". However, it
now cleans up the trash directory automagically after a successful run.
This bit me today when I added a test that should have failed but
accidentally passed. I wanted to look at the output, but it was gone.
Probably it's not worth worrying about, since that is certainly the less
common case, and I can work around it by editing the passing test script
to provoke failure.
When I add to an existing test, I usually:
* guess where I want to start the new test;
* insert an "exit" there to cause failure;
* run it and inspect the state of the test directory;
* write the new test just before the "exit";
* run it until I like the new test;
* remove the "exit".