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-11 14:03:41 +02:00 committed by Fintan Halpenny
parent f7af918190
commit 013da67aa1
1 changed files with 7 additions and 0 deletions

View File

@ -1689,6 +1689,13 @@ fn rad_fork() {
#[test] #[test]
fn rad_diff() { 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(); let tmp = tempfile::tempdir().unwrap();
fixtures::repository(&tmp); fixtures::repository(&tmp);