mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-13 06:50:46 +08:00
cli/test: Skip rad_diff on 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.
This commit is contained in:
committed by
Fintan Halpenny
parent
f7af918190
commit
013da67aa1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user