mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
test: Refactor TFW load_source() method to only take the file path
Fixes issues where example tests for persistent_sockets and advanced_tests both loaded a module named "client", causing a race condition.
This commit is contained in:

committed by
He Yin Ling

parent
c8f483034d
commit
da4cb76f5a
@@ -172,9 +172,9 @@ class Parser(object):
|
||||
"""
|
||||
output = dict()
|
||||
for key in overwrite:
|
||||
_path = overwrite[key]["path"]
|
||||
_module = load_source(str(hash(_path)), overwrite[key]["path"])
|
||||
output[key] = _module.__getattribute__(overwrite[key]["class"])
|
||||
path = overwrite[key]["path"]
|
||||
module = load_source(path)
|
||||
output[key] = module.__getattribute__(overwrite[key]["class"])
|
||||
return output
|
||||
|
||||
@classmethod
|
||||
|
Reference in New Issue
Block a user