scripts: testedtlib.py: Simplify warning test a tiny bit
verify_eq() can be used instead of verify_streq(), since warnings.getvalue() already returns a string. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
ecf2563b47
commit
bc22b3a020
2 changed files with 1 additions and 2 deletions
|
@ -961,7 +961,6 @@ class Node:
|
|||
# to have a 'type: ...'. No Property object is created for it.
|
||||
return None
|
||||
|
||||
|
||||
def _check_undeclared_props(self):
|
||||
# Checks that all properties are declared in the binding
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ def run():
|
|||
edt = edtlib.EDT("test.dts", ["test-bindings"], warnings)
|
||||
|
||||
# Deprecated features are tested too, which generate warnings. Verify them.
|
||||
verify_streq(warnings.getvalue(), """\
|
||||
verify_eq(warnings.getvalue(), """\
|
||||
warning: The 'properties: compatible: constraint: ...' way of specifying the compatible in test-bindings/deprecated.yaml is deprecated. Put 'compatible: "deprecated"' at the top level of the binding instead.
|
||||
warning: the 'inherits:' syntax in test-bindings/deprecated.yaml is deprecated and will be removed - please use 'include: foo.yaml' or 'include: [foo.yaml, bar.yaml]' instead
|
||||
warning: please put 'required: true' instead of 'category: required' in properties: required: ...' in test-bindings/deprecated.yaml - 'category' will be removed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue