Skip to content

Commit 24e6b46

Browse files
NSsirenalukeseawalker
authored andcommitted
Fix cli dimensions filtering in TestRunner
With AZ Override changes, region dimension may contain an AZ that has to be unmarshalled, but only if the dimension has a value that is not None. Signed-off-by: Nicola Sirena <[email protected]>
1 parent 224e724 commit 24e6b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration-tests/conftest_tests_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def apply_cli_dimensions_filtering(config, items):
8787
allowed_values = {}
8888
for dimension in DIMENSIONS_MARKER_ARGS:
8989
values = config.getoption(dimension + "s")
90-
if dimension == "region":
90+
if dimension == "region" and values is not None:
9191
# values may contain a list of az_id/regions.
9292
# We have to unmarshal any of them in case one or more overrides were specified
9393
values = [unmarshal_az_override(v) for v in values]

0 commit comments

Comments
 (0)