From ec85201b8121e6ea2d81af0225197e9bc01251e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=B6hler?= Date: Sat, 26 Apr 2025 14:29:32 +0200 Subject: [PATCH 2/3] allow tests without cli-docs feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Böhler --- meli/tests/test_cli_subcommands.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meli/tests/test_cli_subcommands.rs b/meli/tests/test_cli_subcommands.rs index 8f80046c..053d93e8 100644 --- a/meli/tests/test_cli_subcommands.rs +++ b/meli/tests/test_cli_subcommands.rs @@ -199,6 +199,7 @@ server_password_command = "false" } } +#[cfg(feature = "cli-docs")] fn test_subcommand_man(env: &Env) { for (man, title) in [ ("meli.1", "MELI(1)"), @@ -320,8 +321,11 @@ fn run_cli_subcommands() { help(&common_env); test_subcommand_succeeds(&common_env, "help"); test_subcommand_succeeds(&common_env, "compiled-with"); - test_subcommand_succeeds(&common_env, "man"); - test_subcommand_man(&common_env); + #[cfg(feature = "cli-docs")] + { + test_subcommand_succeeds(&common_env, "man"); + test_subcommand_man(&common_env); + } test_subcommand_config_stdio(&common_env); tmp_dir.close().unwrap(); } @@ -329,6 +333,7 @@ fn run_cli_subcommands() { let tmp_dir = TempDir::new().unwrap(); let mut common_env = make_common_env(tmp_dir.path()); + #[cfg(feature = "cli-docs")] test_subcommand_install_man(&common_env, tmp_dir.path()); let conf_path = tmp_dir.path().join("conf.toml"); -- 2.49.0