From 398f518b2fe81effa154754726c4cbf5d67dedb6 Mon Sep 17 00:00:00 2001 From: veeso Date: Sat, 26 Jun 2021 14:39:09 +0200 Subject: [PATCH] test_utils_git_check_for_updates not when github and mac and bsd --- src/utils/git.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/utils/git.rs b/src/utils/git.rs index c888b6e..6aae409 100644 --- a/src/utils/git.rs +++ b/src/utils/git.rs @@ -78,7 +78,15 @@ mod tests { use super::*; #[test] - #[cfg(not(all(target_os = "macos", feature = "github-actions")))] + #[cfg(not(all( + any( + target_os = "macos", + target_os = "freebsd", + target_os = "netbsd", + target_os = "netbsd" + ), + feature = "github-actions" + )))] fn test_utils_git_check_for_updates() { assert!(check_for_updates("100.0.0").ok().unwrap().is_none()); assert!(check_for_updates("0.0.1").ok().unwrap().is_some());