zephyr/scripts/dts/python-devicetree
Martí Bolívar b13b5b8b3a dtlib: fix include_path edge case
The documentation says DT.__init__ takes any iterable for the
include_path, but this leads to bad results when you pass it something
other than a 'real' sequence (list/tuple/etc), like a generator:

>>> dt = DT('/tmp/foo.dts', (x for x in ['a', 'b', 'c']))
>>> repr(dt)
"DT(filename='/tmp/foo.dts', include_path=<generator object ...>)"

Make a copy in list form just to avoid things like this.

Add a test for this and relax the regular expression in the existing
test case related to this.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-05-05 13:13:12 -05:00
..
src/devicetree dtlib: fix include_path edge case 2021-05-05 13:13:12 -05:00
tests dtlib: fix include_path edge case 2021-05-05 13:13:12 -05:00
.gitignore
requirements.txt
setup.py
tox.ini