fix: isolated-tests feature to run tests for releasing on distributions which run in isolated environments (#286)

* fix: `isolated-tests` feature to run tests for releasing on distributions which run in isolated environments

* fix: cond
This commit is contained in:
Christian Visintin
2024-10-03 12:17:03 +02:00
committed by GitHub
parent fc68e2621b
commit 8e2ffeabce
4 changed files with 18 additions and 9 deletions

View File

@@ -145,10 +145,13 @@ mod test {
}
#[test]
#[cfg(not(all(
any(target_os = "macos", target_os = "freebsd"),
feature = "github-actions"
)))]
#[cfg(all(
not(all(
any(target_os = "macos", target_os = "freebsd"),
feature = "github-actions"
)),
not(feature = "isolated-tests")
))]
fn auto_update() {
// Wno version
assert_eq!(
@@ -162,10 +165,13 @@ mod test {
}
#[test]
#[cfg(not(all(
any(target_os = "macos", target_os = "freebsd"),
feature = "github-actions"
)))]
#[cfg(all(
not(all(
any(target_os = "macos", target_os = "freebsd"),
feature = "github-actions"
)),
not(feature = "isolated-tests")
))]
fn check_for_updates() {
println!("{:?}", Update::is_new_version_available());
assert!(Update::is_new_version_available().is_ok());