rt tests: the render device test finds the pipeline's file under its generation
Its cache directory helper read pipelines/ at the directory's root, where the generation store no longer keeps it, so it found no file (lavapipe, job m3-max-44584). It now reads each generation's pipelines/ directory.
This commit is contained in:
1 parent
ca46749b95
commit
2b034aa3b0
1 file changed
+7
-2
@@ -255,12 +255,17 @@ mod on_device {
|
||||
});
|
||||
}
|
||||
|
||||
/// The pipelines' files under `dir`, by path, with their lengths and times.
|
||||
/// The pipelines' files under `dir`'s generations, by path, with their lengths and times.
|
||||
fn pipeline_files(dir: &Path) -> Vec<(String, u64, SystemTime)> {
|
||||
let mut all = Vec::new();
|
||||
let Ok(uuids) = std::fs::read_dir(dir.join("pipelines")) else {
|
||||
let Ok(generations) = std::fs::read_dir(dir) else {
|
||||
return all;
|
||||
};
|
||||
let pipelines = generations
|
||||
.flatten()
|
||||
.map(|generation| generation.path().join("pipelines"));
|
||||
let uuids =
|
||||
pipelines.flat_map(|pipelines| std::fs::read_dir(pipelines).into_iter().flatten());
|
||||
for uuid in uuids.flatten() {
|
||||
for file in std::fs::read_dir(uuid.path())
|
||||
.expect("a directory")
|
||||
|
||||
Reference in new issue
Block a user