Skip to content

Commit

Permalink
Revert "edtlib: test "last modified" semantic for ... specs"
Browse files Browse the repository at this point in the history
This unit test was added to cover the change introduced by [1].

Further work on related issues [2] showed that the chosen approach
is dead end.
We're reverting all changes made in [1].

[1] edtlib: fix last modified semantic in included property specs
[2] edtlib: Preserve paths of properties from included child bindings

See also: zephyrproject-rtos#65221, zephyrproject-rtos#78095

This reverts commit 70eaa61.

Signed-off-by: Christophe Dufaza <[email protected]>
  • Loading branch information
dottspina committed Oct 17, 2024
1 parent 37185f5 commit d141d88
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 47 deletions.

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions scripts/dts/python-devicetree/tests/test-bindings-include/top.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions scripts/dts/python-devicetree/tests/test_edtlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,18 +365,6 @@ def test_include_filters():
assert set(child.prop2specs.keys()) == {'child-prop-1', 'child-prop-2',
'x', 'z'} # root level 'y' is blocked

def test_include_paths():
'''Test "last modified" semantic for included bindings paths.'''

fname2path = {'base.yaml': 'test-bindings-include/base.yaml',
'modified.yaml': 'test-bindings-include/modified.yaml'}

with from_here():
top = edtlib.Binding('test-bindings-include/top.yaml', fname2path)

assert 'modified.yaml' == os.path.basename(top.prop2specs["x"].path)
assert 'base.yaml' == os.path.basename(top.prop2specs["y"].path)
assert 'top.yaml' == os.path.basename(top.prop2specs["p"].path)

def test_bus():
'''Test 'bus:' and 'on-bus:' in bindings'''
Expand Down

0 comments on commit d141d88

Please sign in to comment.