From 97e16373934521d9f8be8c5e5cbed24c7a16c798 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 5 Nov 2026 23:41:03 -0800 Subject: [PATCH] fix(test): do not check the pages of the cli for macOS on a Windows host ApplicationIdentifier::Class is described per platform ("Class" on Windows, "Role or subrole" elsewhere), and the description is taken from the host the test is built for. every_macos_page_is_as_checked_in renders the pages of komorebic for macOS from the command line, so on the Windows runner six of them (ignore-rule, manage-rule, workspace-rule, named-workspace-rule, initial-workspace-rule and initial-named-workspace-rule) came out with "- class: Class" and were reported as stale, though the checked-in pages are right. The pages are the same on the hosts that have the macOS wording, and the linux test run checks them, so skip the test on Windows. --- crates/komorebic-core/tests/docs_cli.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/komorebic-core/tests/docs_cli.rs b/crates/komorebic-core/tests/docs_cli.rs index ae3e292d..1a6b0e16 100644 --- a/crates/komorebic-core/tests/docs_cli.rs +++ b/crates/komorebic-core/tests/docs_cli.rs @@ -32,6 +32,11 @@ fn every_macos_page_is_as_checked_in() { // a source tree without the macOS tree (the nix build of the Windows workspace) return; } + if cfg!(windows) { + // the identifiers are worded per platform, and a Windows host renders its own wording; + // the pages are the same on the hosts that have the macOS one, which the linux run covers + return; + } let rendered = pages(command::(&META), &DocFormat::PLAIN); let mut stale = Vec::new();