aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedetta Delfino <benni.delfino@arm.com>2024-02-29 10:38:05 +0000
committerBenedetta Delfino <benedetta.delfino@arm.com>2024-03-08 14:29:48 +0000
commit2e9dc4cf750a7ae18f87abd174aa7b5be40a7d37 (patch)
tree75fb0be119ccd9f4e6f6b35a120e1c47e14a69ed
parent9a882300efb6049fb7a12d425eda1e43cfbefbe7 (diff)
downloadmlia-2e9dc4cf750a7ae18f87abd174aa7b5be40a7d37.tar.gz
fix: bugfix argparse e2e tests
Argparse in the e2e tests was set up such that if the model name was specified after the backend, the model itself would be recognised as an invalid backend and the test skipped. Fixed this behavior Resolves: MLIA-1101 Signed-off-by: Benedetta Delfino <benni.delfino@arm.com> Change-Id: I645992379adfcb13a72b946c713d5a0be429fca8
-rw-r--r--tests_e2e/test_e2e.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests_e2e/test_e2e.py b/tests_e2e/test_e2e.py
index 2d8c375..602a653 100644
--- a/tests_e2e/test_e2e.py
+++ b/tests_e2e/test_e2e.py
@@ -254,7 +254,7 @@ def check_args(args: list[str], no_skip: bool) -> None:
parser.add_argument(
"--backend",
help="Backends to use for evaluation.",
- nargs="+",
+ action="append",
)
parsed_args, _ = parser.parse_known_args(args)