未验证 提交 f44afe14 编写于 作者: wafwerar's avatar wafwerar 提交者: GitHub

fix: resolve win test error. (#11405)

* [TD-13063]<fix>: Fix win test error.

* fix: resolve win test error.
上级 91eddd7e
...@@ -294,11 +294,12 @@ class TDDnode: ...@@ -294,11 +294,12 @@ class TDDnode:
print(cmd) print(cmd)
taosadapterCmd = "nohup %s --opentsdb_telnet.enable=true --monitor.writeToTD=false > /dev/null 2>&1 & " % ( if (taosadapterBinPath != ""):
taosadapterBinPath) taosadapterCmd = "nohup %s --opentsdb_telnet.enable=true --monitor.writeToTD=false > /dev/null 2>&1 & " % (
tdLog.info(taosadapterCmd) taosadapterBinPath)
if os.system(taosadapterCmd) != 0: tdLog.info(taosadapterCmd)
tdLog.exit(taosadapterCmd) if os.system(taosadapterCmd) != 0:
tdLog.exit(taosadapterCmd)
if os.system(cmd) != 0: if os.system(cmd) != 0:
tdLog.exit(cmd) tdLog.exit(cmd)
...@@ -359,11 +360,12 @@ class TDDnode: ...@@ -359,11 +360,12 @@ class TDDnode:
cmd = "mintty -h never -w hide %s -c %s" % ( cmd = "mintty -h never -w hide %s -c %s" % (
binPath, self.cfgDir) binPath, self.cfgDir)
taosadapterCmd = "mintty -h never -w hide %s --monitor.writeToTD=false " % ( if (taosadapterBinPath != ""):
taosadapterBinPath) taosadapterCmd = "mintty -h never -w hide %s --monitor.writeToTD=false " % (
if os.system(taosadapterCmd) != 0: taosadapterBinPath)
tdLog.exit(taosadapterCmd) if os.system(taosadapterCmd) != 0:
tdLog.exit(taosadapterCmd)
if os.system(cmd) != 0: if os.system(cmd) != 0:
tdLog.exit(cmd) tdLog.exit(cmd)
...@@ -431,9 +433,10 @@ class TDDnode: ...@@ -431,9 +433,10 @@ class TDDnode:
print(cmd) print(cmd)
taosadapterCmd = "%s --monitor.writeToTD=false > /dev/null 2>&1 & " % (taosadapterBinPath) if (taosadapterBinPath != ""):
if os.system(taosadapterCmd) != 0: taosadapterCmd = "%s --monitor.writeToTD=false > /dev/null 2>&1 & " % (taosadapterBinPath)
tdLog.exit(taosadapterCmd) if os.system(taosadapterCmd) != 0:
tdLog.exit(taosadapterCmd)
if os.system(cmd) != 0: if os.system(cmd) != 0:
tdLog.exit(cmd) tdLog.exit(cmd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册