My use case is the same as in #515. I want to be able to get the non-0 exit value from `test_file`. It's a bit strange that `test_dir`, `test_check` and the internal `test_files` accept the `stop_on_failure`, but the workhorse `test_file` doesn't. The simplest way to address this might be to export `test_files`.