From 7dba691ccc001aa720d0ecf1642dda94219a2d21 Mon Sep 17 00:00:00 2001 From: veeso Date: Wed, 13 Nov 2024 17:06:34 +0100 Subject: [PATCH] fix: isolated-tests for localhost --- src/host/localhost.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/host/localhost.rs b/src/host/localhost.rs index 3cfee60..daf276a 100644 --- a/src/host/localhost.rs +++ b/src/host/localhost.rs @@ -579,6 +579,7 @@ mod tests { #[test] #[cfg(posix)] + #[cfg(not(feature = "isolated-tests"))] fn test_host_localhost_new() { let host: Localhost = Localhost::new(PathBuf::from("/dev")).ok().unwrap(); assert_eq!(host.wrkdir, PathBuf::from("/dev")); @@ -622,6 +623,7 @@ mod tests { #[test] #[cfg(posix)] + #[cfg(not(feature = "isolated-tests"))] fn test_host_localhost_change_dir() { let mut host: Localhost = Localhost::new(PathBuf::from("/dev")).ok().unwrap(); let new_dir: PathBuf = PathBuf::from("/dev");