From bc22b3a02091ad92e759d68ee992e034c16ebbfc Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 3 Oct 2019 05:28:52 +0200 Subject: [PATCH] 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 --- scripts/dts/edtlib.py | 1 - scripts/dts/testedtlib.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/dts/edtlib.py b/scripts/dts/edtlib.py index 976622c58d0..5832897c31d 100644 --- a/scripts/dts/edtlib.py +++ b/scripts/dts/edtlib.py @@ -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 diff --git a/scripts/dts/testedtlib.py b/scripts/dts/testedtlib.py index eae7497c509..038acddfeab 100755 --- a/scripts/dts/testedtlib.py +++ b/scripts/dts/testedtlib.py @@ -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