未验证 提交 9545c788 编写于 作者: haoranc's avatar haoranc 提交者: GitHub

Update dnodes.py

上级 63d186af
......@@ -812,7 +812,7 @@ class TDDnodes:
time.sleep(1)
processID = subprocess.check_output(
psCmd, shell=True).decode("utf-8").strip()
psCmd = "for /f %a in ('wmic process where \"name='tmq_simm.exe'\" get processId ^| xargs echo ^| awk '{print $2}' ^&^& echo aa') do @(ps | grep %a | awk '{print $1}' | xargs)"
psCmd = "for /f %a in ('wmic process where \"name='tmq_sim.exe'\" get processId ^| xargs echo ^| awk '{print $2}' ^&^& echo aa') do @(ps | grep %a | awk '{print $1}' | xargs)"
processID = subprocess.check_output(psCmd, shell=True).decode("utf-8").strip()
while(processID):
print(processID)
......@@ -870,4 +870,4 @@ class TDDnodes:
def getAsan(self):
return self.asan
tdDnodes = TDDnodes()
\ No newline at end of file
tdDnodes = TDDnodes()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册