Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli/test: Skip `rad_diff` on macOS
✗ CI failure Lorenz Leutgeb committed 6 months ago
commit 013da67aa1cd72776ecae5643fe5f055154a334d
parent f7af91819051b898bdd3d009791ee3ed0bc0be18
2 failed (2 total) View logs
1 file changed +7 -0
modified crates/radicle-cli/tests/commands.rs
@@ -1689,6 +1689,13 @@ fn rad_fork() {

#[test]
fn rad_diff() {
+
    if std::env::consts::OS == "macos" {
+
        // macOS's `sed` requires an argument for `-i`, which we don't provide
+
        // in the example. Providing it makes the test fail on Linux.
+
        // Since this command is deprecated anyway, we just skip macOS.
+
        return;
+
    }
+

    let tmp = tempfile::tempdir().unwrap();

    fixtures::repository(&tmp);