From 3366535c9d8b2ed123bd50d15468aa41d02bd9fc Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Tue, 25 Jul 2023 15:46:13 +0200 Subject: [PATCH] rad: Disable tests that use `sed` on macos Due to differences between how BSD sed and GNU sed work, we disable for now tests that use sed on macos Signed-off-by: Sebastian Martinez --- radicle-cli/tests/commands.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radicle-cli/tests/commands.rs b/radicle-cli/tests/commands.rs index 5aae15d5..51b08002 100644 --- a/radicle-cli/tests/commands.rs +++ b/radicle-cli/tests/commands.rs @@ -1,6 +1,6 @@ use std::path::Path; use std::str::FromStr; -use std::{env, fs, thread, time}; +use std::{env, thread, time}; use radicle::git; use radicle::node::Alias; @@ -298,7 +298,10 @@ fn rad_patch_update() { } #[test] +#[cfg(not(target_os = "macos"))] fn rad_patch_ahead_behind() { + use std::fs; + let mut environment = Environment::new(); let profile = environment.profile("alice"); let working = tempfile::tempdir().unwrap(); @@ -362,6 +365,7 @@ fn rad_patch_via_push() { } #[test] +#[cfg(not(target_os = "macos"))] fn rad_review_by_hunk() { logger::init(log::Level::Debug);