diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2023-02-13 11:45:27 +0000 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2023-02-13 11:52:39 +0000 |
commit | cceb6fbd548d6414928f779e5572d325beb3c604 (patch) | |
tree | 88715454c941ae4ebf27a35db586f494c30fd812 /tests_e2e/test_e2e.py | |
parent | 718277eaece76902c4950f18d428907b39a18ef1 (diff) | |
download | mlia-cceb6fbd548d6414928f779e5572d325beb3c604.tar.gz |
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
Diffstat (limited to 'tests_e2e/test_e2e.py')
-rw-r--r-- | tests_e2e/test_e2e.py | 6 |
1 files 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, } |