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:
Lorenz Leutgeb
2025-10-13 10:27:02 +01:00
committed by Fintan Halpenny
parent f7af918190
commit 013da67aa1
+7
View File
@@ -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);