From 9545c7882ac939d593ef886f7dea2d67f8bba709 Mon Sep 17 00:00:00 2001 From: haoranchen Date: Wed, 23 Aug 2023 14:13:46 +0800 Subject: [PATCH 1/2] Update dnodes.py --- tests/pytest/util/dnodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index d34e50b510..948188803d 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -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() From 7bee618ee1440f7ee9b0a314b1c6ca0ed8bd163e Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Wed, 23 Aug 2023 14:16:14 +0800 Subject: [PATCH 2/2] test:kill tmq_sim process when start cases in windows --- tests/pytest/util/dnodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 948188803d..e91d9d3f6b 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -870,4 +870,4 @@ class TDDnodes: def getAsan(self): return self.asan -tdDnodes = TDDnodes() +tdDnodes = TDDnodes() \ No newline at end of file