From cceb6fbd548d6414928f779e5572d325beb3c604 Mon Sep 17 00:00:00 2001 From: Dmitrii Agibov Date: Mon, 13 Feb 2023 11:45:27 +0000 Subject: MLIA-811 Fix issue with CLI parser in e2e tests - Create new CLI parser instance whenever needed as it contains static data and could not be reused Change-Id: I8a67bb585e95d972304eca809ff28b822a3151b6 --- tests_e2e/test_e2e.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests_e2e/test_e2e.py b/tests_e2e/test_e2e.py index 37a1833..c164901 100644 --- a/tests_e2e/test_e2e.py +++ b/tests_e2e/test_e2e.py @@ -237,13 +237,13 @@ def get_all_commands_combinations( ExecutionConfiguration.from_dict(exec_info) for exec_info in executions ) - parser = get_args_parser() for exec_config in exec_configs: for command_combination in exec_config.all_combinations: + parser = get_args_parser() args = parser.parse_args(command_combination) - model_name = Path(args.model).stem + yield { - "model_name": model_name, + "model_name": Path(args.model).stem, "command_combination": command_combination, } -- cgit v1.2.1