Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
cli/test: Skip `rad_diff` on macOS
Merged lorenz opened 6 months ago

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.

1 file changed +7 -0 f7af9181 013da67a
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);