Merge pull request #28712 from taosdata/test/main/chr/smoketest
test:add tmq_sim to community smoke tests on a mac
This commit is contained in:
commit
42b52ef9d7
|
@ -61,7 +61,7 @@ def setup_module(get_config):
|
||||||
else:
|
else:
|
||||||
cmd = "mkdir -p ../../debug/build/bin/"
|
cmd = "mkdir -p ../../debug/build/bin/"
|
||||||
subprocess.getoutput(cmd)
|
subprocess.getoutput(cmd)
|
||||||
if config["system"] == "Linux": # add tmq_sim
|
if config["system"] == "Linux" or config["system"] == "Darwin" : # add tmq_sim
|
||||||
cmd = "cp -rf ../../../debug/build/bin/tmq_sim ../../debug/build/bin/."
|
cmd = "cp -rf ../../../debug/build/bin/tmq_sim ../../debug/build/bin/."
|
||||||
subprocess.getoutput(cmd)
|
subprocess.getoutput(cmd)
|
||||||
if config["system"] == "Darwin":
|
if config["system"] == "Darwin":
|
||||||
|
@ -140,9 +140,11 @@ class TestServer:
|
||||||
if line:
|
if line:
|
||||||
print(line.strip())
|
print(line.strip())
|
||||||
if "succeed to write dnode" in line:
|
if "succeed to write dnode" in line:
|
||||||
time.sleep(15)
|
time.sleep(5)
|
||||||
# 发送终止信号
|
# 发送终止信号
|
||||||
os.kill(process.pid, signal.SIGTERM)
|
os.kill(process.pid, signal.SIGKILL)
|
||||||
|
# Waiting for the process to be completely killed
|
||||||
|
time.sleep(5)
|
||||||
break
|
break
|
||||||
|
|
||||||
@pytest.mark.all
|
@pytest.mark.all
|
||||||
|
|
Loading…
Reference in New Issue