提交 43afdc5a 编写于 作者: wafwerar's avatar wafwerar

os: add taosd assert kill

上级 b84120d0
......@@ -134,7 +134,7 @@ class TDTestCase:
parameterDict['cfg'] = cfgPath
prepareEnvThread = threading.Thread(target=self.prepareEnv, kwargs=parameterDict)
prepareEnvThread.start()
time.sleep(2)
prepareEnvThread.join()
# wait stb ready
while 1:
......@@ -245,6 +245,7 @@ class TDTestCase:
prepareEnvThread = threading.Thread(target=self.prepareEnv, kwargs=parameterDict)
prepareEnvThread.start()
prepareEnvThread.join()
# wait db ready
while 1:
......@@ -371,6 +372,7 @@ class TDTestCase:
prepareEnvThread = threading.Thread(target=self.prepareEnv, kwargs=parameterDict)
prepareEnvThread.start()
prepareEnvThread.join()
# wait db ready
while 1:
......
......@@ -61,19 +61,19 @@ goto :eof
set tt=%1
set tt=%tt:.= %
set tt=%tt::= %
set index=1
set /a index=1
for %%a in (%tt%) do (
if !index! EQU 1 (
set /a hh=%%a
set /a hh=%%a || echo 11 %%a
)^
else if !index! EQU 2 (
set /a mm=%%a
set /a mm=%%a || echo 22 %%a
)^
else if !index! EQU 3 (
set /a ss=%%a
set /a ss=%%a || echo 33 %%a
)
set /a index=index+1
)
set /a _timeTemp=(%hh%*60+%mm%)*60+%ss% || echo hh:%hh% mm:%mm% ss:%ss%
set /a _timeTemp=(%hh%*60+%mm%)*60+%ss% || echo 44 hh:%hh% mm:%mm% ss:%ss%
goto :eof
\ No newline at end of file
......@@ -21,6 +21,7 @@ import base64
import json
import platform
import socket
import threading
from distutils.log import warn as printf
from fabric2 import Connection
sys.path.append("../pytest")
......@@ -30,6 +31,13 @@ from util.cases import *
import taos
def checkRunTimeError():
import win32gui
while 1:
time.sleep(1)
hwnd = win32gui.FindWindow(None, "Microsoft Visual C++ Runtime Library")
if hwnd:
os.system("TASKKILL /F /IM taosd.exe")
if __name__ == "__main__":
......@@ -42,9 +50,6 @@ if __name__ == "__main__":
logSql = True
stop = 0
restart = False
windows = 0
if platform.system().lower() == 'windows':
windows = 1
updateCfgDict = {}
execCmd = ""
opts, args = getopt.gnu_getopt(sys.argv[1:], 'f:p:m:l:scghrd:k:e:', [
......@@ -159,7 +164,9 @@ if __name__ == "__main__":
host = masterIp
tdLog.info("Procedures for tdengine deployed in %s" % (host))
if windows:
if platform.system().lower() == 'windows':
if (masterIp == ""):
threading.Thread(target=checkRunTimeError,daemon=True).start()
tdCases.logSql(logSql)
tdLog.info("Procedures for testing self-deployment")
tdDnodes.init(deployPath, masterIp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册