diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-10-13T05·10-0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2022-10-13T09·07+0000 |
commit | 534a2f95f86f3b0340040261ffc428d604210512 (patch) | |
tree | 249a251006885d67a7f6a24067379e51de2ce7ba /tvix/eval | |
parent | e83609a06195642f472b112ffa95f001fde8ef60 (diff) |
fix(tvix/eval): nix_search_path.rs: use /etc instead of /bin r/5118
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 <adam@westernsemico.com> Change-Id: I1c94de0d2a242394182442fe1c895dc17eb04a4a Reviewed-on: https://cl.tvl.fyi/c/depot/+/6994 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/nix_search_path.rs | 4 |
1 files 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] |