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:
Angus Gratton
2019-11-28 19:25:52 +08:00
committed by He Yin Ling
parent c8f483034d
commit da4cb76f5a
6 changed files with 25 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ import Utility
# Import client module
expath = os.path.dirname(os.path.realpath(__file__))
client = Utility.load_source("client", expath + "/scripts/client.py")
client = Utility.load_source(expath + "/scripts/client.py")
@IDF.idf_example_test(env_tag="Example_WIFI")