pub fn materialize_in_dir( spec: &SpawnSpec, dir: &Path, ) -> Result<(String, PathBuf)>
Test seam — write into an explicit directory.