Skip to content

Commit 07fabac

Browse files
committed
fix: gate Linux-only CLI smoke tests with cfg(target_os)
scan-memory and check-rootkit subcommands are #[cfg(target_os = "linux")], their smoke tests must be gated the same way to pass on macOS CI.
1 parent 161197d commit 07fabac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/cli/tests/commands_smoke.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ help_smoke_test!(help_schedule, "schedule");
5555
help_smoke_test!(help_policy, "policy");
5656
help_smoke_test!(help_daemon, "daemon");
5757
help_smoke_test!(help_scan_usb, "scan-usb");
58+
#[cfg(target_os = "linux")]
5859
help_smoke_test!(help_scan_memory, "scan-memory");
60+
#[cfg(target_os = "linux")]
5961
help_smoke_test!(help_check_rootkit, "check-rootkit");
6062
help_smoke_test!(help_webhook, "webhook");
6163
help_smoke_test!(help_email_alert, "email-alert");

0 commit comments

Comments
 (0)