mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-29 11:52:50 +01:00
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.
This commit is contained in:
1 parent
8642f7b184
commit
97e1637393
1 file changed
+5
@@ -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::<MacosCommands>(&META), &DocFormat::PLAIN);
|
||||
let mut stale = Vec::new();
|
||||
|
||||
Reference in new issue
Block a user