From 6538d318a9af4849d4a69f767096f1a196913fc3 Mon Sep 17 00:00:00 2001 From: danceratopz Date: Thu, 31 Oct 2024 08:13:13 +0100 Subject: [PATCH] fix(cli/consume): fix duplication of user-provided pytest flags (#930) --- src/cli/pytest_commands/consume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/pytest_commands/consume.py b/src/cli/pytest_commands/consume.py index 532a7ff6e8..b1d6070a16 100644 --- a/src/cli/pytest_commands/consume.py +++ b/src/cli/pytest_commands/consume.py @@ -41,7 +41,7 @@ def handle_consume_command_flags(consume_args: List[str], is_hive: bool) -> List args = list(handle_help_flags(consume_args, pytest_type="consume")) args += ["-c", "pytest-consume.ini"] if is_hive: - args += handle_hive_env_flags(args) + args = handle_hive_env_flags(args) args += ["-p", "pytest_plugins.pytest_hive.pytest_hive"] # Ensure stdout is captured when timing data is enabled. if "--timing-data" in args and "-s" not in args: