twister: deprecate space-separated lists
Deprecate in favor of native YAML lists. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
93b63df762
commit
a91620f5bb
1 changed files with 12 additions and 0 deletions
|
@ -117,6 +117,12 @@ class TwisterConfigParser:
|
|||
return value
|
||||
elif isinstance(value, str):
|
||||
vs = v.split()
|
||||
|
||||
if len(vs) > 1:
|
||||
warnings.warn(
|
||||
"Space-separated lists are deprecated, use YAML lists instead",
|
||||
DeprecationWarning)
|
||||
|
||||
if len(typestr) > 4 and typestr[4] == ":":
|
||||
return [self._cast_value(vsi, typestr[5:]) for vsi in vs]
|
||||
else:
|
||||
|
@ -129,6 +135,12 @@ class TwisterConfigParser:
|
|||
return set(value)
|
||||
elif isinstance(value, str):
|
||||
vs = v.split()
|
||||
|
||||
if len(vs) > 1:
|
||||
warnings.warn(
|
||||
"Space-separated lists are deprecated, use YAML lists instead",
|
||||
DeprecationWarning)
|
||||
|
||||
if len(typestr) > 3 and typestr[3] == ":":
|
||||
return {self._cast_value(vsi, typestr[4:]) for vsi in vs}
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue