test: add client config for test cases

This commit is contained in:
Ping Xiao 2022-04-27 10:02:22 +08:00
parent a0fcc9a2ae
commit c6cc7eff86
1 changed files with 7 additions and 5 deletions

View File

@ -96,11 +96,13 @@ class TDSimClient:
for key, value in self.cfgDict.items(): for key, value in self.cfgDict.items():
self.cfg(key, value) self.cfg(key, value)
if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]: try:
print(updatecfgDict[0][0]) if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]:
clientCfg = dict (updatecfgDict[0][0].get('clientCfg')) clientCfg = dict (updatecfgDict[0][0].get('clientCfg'))
for key, value in clientCfg.items(): for key, value in clientCfg.items():
self.cfg(key, value) self.cfg(key, value)
except Exception:
pass
tdLog.debug("psim is deployed and configured by %s" % (self.cfgPath)) tdLog.debug("psim is deployed and configured by %s" % (self.cfgPath))