From bcef909d40f790c53ffc6faec2652f8a1acac96b Mon Sep 17 00:00:00 2001 From: Marco Arnulfo Date: Wed, 21 Oct 2026 10:28:39 +0200 Subject: [PATCH] tests_import: without a library the imported profile keeps no file path at all --- crates/engine/src/tests_import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/tests_import.rs b/crates/engine/src/tests_import.rs index 1ac68c7bd..7d1984746 100644 --- a/crates/engine/src/tests_import.rs +++ b/crates/engine/src/tests_import.rs @@ -630,7 +630,7 @@ fn cube_import_without_a_library_leaves_no_temp_copy() { let id = r["imported"][0]["id"].as_str().unwrap().to_string(); assert!(lightcraft_pipeline::lut::get(&id).is_some(), "usable in this session"); let file = s.lut_profiles.iter().find(|p| p.id == id).unwrap().file.clone(); - assert!(file.is_empty() || Path::new(&file).starts_with(&src), "no copy written: {file}"); + assert!(file.is_empty(), "no file kept without a library: {file}"); drop(s); assert!(!leak.exists(), "{} left behind", leak.display()); lightcraft_pipeline::lut::unregister(&id);