When iterating on a change or writing a new test, a common dev process goes like this:
- Make a change.
- Run ./test/functional/test_runner.py mytest It fails.
- Scroll up in the terminal and copy the test data directory.
- Paste it back into the command line for inspection.
This process is often repeated until the test is green. The smaller the terminal, the more annoying it is.
This patch introduces a very simple solution: a symlink to the last failing test's data directory. This makes it still useful if you are running multiple tests, but the best use case is when you need to repeat the process multiple times to nail down a fix for a particular test.