From c6cfc78d5245c550016b9709686d2b32ab3fcd5b Mon Sep 17 00:00:00 2001 From: Dmitrii Agibov Date: Thu, 2 Feb 2023 09:07:02 +0000 Subject: MLIA-461 Add parameter for the output directory - Add CLI parameter --output-dir - Rename ExecutionContext property working_dir into output_dir - Remove logic for default command as it is no longer needed Change-Id: I6387f6b688520ba1fc69a80167587297353620f6 --- tests_e2e/test_e2e.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests_e2e') diff --git a/tests_e2e/test_e2e.py b/tests_e2e/test_e2e.py index beddaed..4de640b 100644 --- a/tests_e2e/test_e2e.py +++ b/tests_e2e/test_e2e.py @@ -23,9 +23,7 @@ import pytest from mlia.cli.config import get_available_backends from mlia.cli.main import get_commands from mlia.cli.main import get_possible_command_names -from mlia.cli.main import init_commands -from mlia.cli.main import init_common_parser -from mlia.cli.main import init_subcommand_parser +from mlia.cli.main import init_parser from mlia.utils.filesystem import get_supported_profile_names from mlia.utils.types import is_list_of @@ -155,11 +153,8 @@ def get_config_file() -> Path: def get_args_parser() -> Any: """Return MLIA argument parser.""" - common_parser = init_common_parser() - subcommand_parser = init_subcommand_parser(common_parser) - init_commands(subcommand_parser, get_commands()) - - return subcommand_parser + commands = get_commands() + return init_parser(commands) def replace_element(params: list[str], idx: int, value: str) -> list[str]: -- cgit v1.2.1