From 534a2f95f86f3b0340040261ffc428d604210512 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 12 Oct 2022 22:10:06 -0700 Subject: fix(tvix/eval): nix_search_path.rs: use /etc instead of /bin On Debian machines (and most FHS distros) /bin is now a symlink to /usr/bin, which causes this test to fail. Let's use /etc as a root-relative test case, since it is less likely to be a symlink. Signed-off-by: Adam Joseph Change-Id: I1c94de0d2a242394182442fe1c895dc17eb04a4a Reviewed-on: https://cl.tvl.fyi/c/depot/+/6994 Tested-by: BuildkiteCI Reviewed-by: grfn --- tvix/eval/src/nix_search_path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tvix/eval/src/nix_search_path.rs b/tvix/eval/src/nix_search_path.rs index 82a2a950998b..b19c5c1dd5cf 100644 --- a/tvix/eval/src/nix_search_path.rs +++ b/tvix/eval/src/nix_search_path.rs @@ -186,8 +186,8 @@ mod tests { #[test] fn second_in_path() { let nix_search_path = NixSearchPath::from_str("./.:/").unwrap(); - let res = nix_search_path.resolve("bin").unwrap(); - assert_eq!(res, Path::new("/bin")); + let res = nix_search_path.resolve("etc").unwrap(); + assert_eq!(res, Path::new("/etc")); } #[test] -- cgit 1.4.1