]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/runtime/context: remove duplicate sys.path entries when looking for modules
authorRoss Burton <ross@burtonini.com>
Fri, 25 Mar 2022 12:29:10 +0000 (12:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Mar 2022 09:33:28 +0000 (09:33 +0000)
commite478381ac1cccc5f882198fd11c8757db7e3741a
tree79757608ff3c9ff12f1652ad0509c3ab8e74a9a0
parent96eac366b7b2ba3a826227f9bfe2c1bedea6943e
oeqa/runtime/context: remove duplicate sys.path entries when looking for modules

sys.path can contain duplicate entries for each layer, which means that
the search in add_controller_list() will find the same name twice and
abort.

As duplicate directories should be harmless, remove any duplicates before
iterating through the entries.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oeqa/runtime/context.py