From 4c0a067afbe80e9bb53c5bcab94adbf93eee1e59 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 4 Jan 2024 22:11:47 +0100 Subject: [PATCH] tests/{none-ls,efmls-configs}: disable cbfmt, latexindent and chktex on darwin (broken) --- .../test-sources/plugins/lsp/efmls-configs.nix | 18 ++++++++++++++---- tests/test-sources/plugins/none-ls.nix | 4 +++- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/tests/test-sources/plugins/lsp/efmls-configs.nix b/tests/test-sources/plugins/lsp/efmls-configs.nix index 8611a714..26cf46cc 100644 --- a/tests/test-sources/plugins/lsp/efmls-configs.nix +++ b/tests/test-sources/plugins/lsp/efmls-configs.nix @@ -15,10 +15,20 @@ # Where tools is the option type representing the valid tools for this language toolOptions = (builtins.head options.setup.type.getSubModules).options; - brokenTools = [ - #Broken as of 16 of November 2023 - "phpstan" - ]; + brokenTools = + [ + #Broken as of 16 of November 2023 + "phpstan" + ] + ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ + # As of 2024-01-04, cbfmt is broken on darwin + # TODO: re-enable this test when fixed + "cbfmt" + # As of 2024-01-04, texliveMedium is broken on darwin + # TODO: re-enable those tests when fixed + "chktex" + "latexindent" + ]; unpackaged = [ diff --git a/tests/test-sources/plugins/none-ls.nix b/tests/test-sources/plugins/none-ls.nix index eb563eda..828f492b 100644 --- a/tests/test-sources/plugins/none-ls.nix +++ b/tests/test-sources/plugins/none-ls.nix @@ -84,7 +84,9 @@ formatting = { alejandra.enable = true; black.enable = true; - cbfmt.enable = true; + # As of 2024-01-04, cbfmt is broken on darwin + # TODO: re-enable this test when fixed + cbfmt.enable = !pkgs.stdenv.isDarwin; eslint.enable = true; eslint_d.enable = true; fantomas.enable = pkgs.stdenv.isLinux;