Skip to content

Commit

Permalink
Merge pull request #22511 from taosdata/test/TD-25838
Browse files Browse the repository at this point in the history
test:kill tmq_sim process when start cases in windows
  • Loading branch information
gccgdb1234 committed Aug 22, 2023
2 parents 1a0ebb7 + 63d186a commit aeb098c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pytest/util/dnodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def stopAll(self):
time.sleep(1)
processID = subprocess.check_output(
psCmd, shell=True).decode("utf-8").strip()
psCmd = "for /f %a in ('wmic process where \"name='tmq_sim'\" 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_simm.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)
Expand Down

0 comments on commit aeb098c

Please sign in to comment.