pub(crate) fn make_test_closure( config: Arc<Config>, testpaths: &TestPaths, revision: Option<&str>, ) -> TestFn