aboutsummaryrefslogtreecommitdiff
path: root/tests_e2e
diff options
context:
space:
mode:
authorDmitrii Agibov <dmitrii.agibov@arm.com>2023-02-02 09:07:02 +0000
committerDmitrii Agibov <dmitrii.agibov@arm.com>2023-02-06 11:51:52 +0000
commitc6cfc78d5245c550016b9709686d2b32ab3fcd5b (patch)
tree42786a3755370d0fefea659d7e532a5483955239 /tests_e2e
parentf1eaff3c9790464bed3183ff76555cf815166f50 (diff)
downloadmlia-c6cfc78d5245c550016b9709686d2b32ab3fcd5b.tar.gz
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
Diffstat (limited to 'tests_e2e')
-rw-r--r--tests_e2e/test_e2e.py11
1 files changed, 3 insertions, 8 deletions
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]: