diff --git a/Cargo.toml b/Cargo.toml index 4726a80..8474458 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,6 +31,7 @@ tempfile = "3.10.1" [features] default = [] openssl_src = ["dep:openssl-sys"] +pure_tests = [] [profile.release] debug = "limited" diff --git a/flake.nix b/flake.nix index d0e83b1..101136f 100644 --- a/flake.nix +++ b/flake.nix @@ -113,6 +113,8 @@ inherit cargoArtifacts; partitions = 1; partitionType = "count"; + + cargoNextestExtraArgs = "--no-fail-fast --features pure_tests"; }); }; diff --git a/src/targets/fs.rs b/src/targets/fs.rs index de84613..c15a5b4 100644 --- a/src/targets/fs.rs +++ b/src/targets/fs.rs @@ -119,6 +119,7 @@ impl From<&Config> for FileSystemBackupTarget { mod tests { use super::*; + #[cfg(not(feature="pure_tests"))] #[tokio::test] async fn test_backup() { let temp_dir = tempfile::tempdir().expect("a temporary directory");