Skip to content

Commit

Permalink
variants: parse multi-values (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
becker33 authored Aug 27, 2024
1 parent 9d63adb commit a31f550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/benchpark/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __setitem__(self, name: str, values: Union[str, Iterable]):
if isinstance(values, str):
values = (values,)
else:
values = tuple(*values)
values = tuple(values)
super().__setitem__(name, values)

def intersects(self, other: "VariantMap") -> bool:
Expand Down Expand Up @@ -498,7 +498,7 @@ def next_spec(self) -> Optional[Spec]:
), f"SPLIT_KVP cannot split pair {self.ctx.current_token.value}"

name, value = match.groups()
spec.variants[name] = value
spec.variants[name] = value.split(",")
else:
break

Expand Down

0 comments on commit a31f550

Please sign in to comment.