From 20844a0232a7c64da076dcc6402f19127d15738d Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 16 Nov 2026 16:52:52 -0800 Subject: [PATCH] View check test: the committed profile found at run time, as a carried test archive needs an_answer_with_facts_makes_the_measured_compile_device read lavapipe's committed profile through env!("CARGO_MANIFEST_DIR"), the building machine's path, so a test archive carried to another node (the RX 7900 XTX run, um790 job m3-max-38286) panicked reading it. It reads it through metal2vulkan_devtools::validation_dir(), as the runtime's other profile-reading tests do. --- crates/metal2vulkan-runtime/src/view_check/tests.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/view_check/tests.rs b/crates/metal2vulkan-runtime/src/view_check/tests.rs index 3b14d4134..0b3b2b2d2 100644 --- a/crates/metal2vulkan-runtime/src/view_check/tests.rs +++ b/crates/metal2vulkan-runtime/src/view_check/tests.rs @@ -153,8 +153,7 @@ fn a_record_reads_back_for_its_identity_alone() { fn an_answer_with_facts_makes_the_measured_compile_device() { use super::{ViewCheck, ViewCosts}; use metal2vulkan::device::{Device as CompileDevice, DeviceDescription, DevicePolicy}; - let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../metal2vulkan-validation/profiles/lavapipe.json"); + let path = metal2vulkan_devtools::validation_dir().join("profiles/lavapipe.json"); let text = std::fs::read_to_string(path).unwrap(); let description = DeviceDescription::from_khronos_json(&text, None).unwrap(); let policy = DevicePolicy::default();