File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed
gz_ros2_control_tests/tests Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,11 @@ def setUpClass(cls):
65
65
def tearDownClass (cls ):
66
66
for proc in psutil .process_iter ():
67
67
# check whether the process name matches
68
- if proc .name () == 'ruby' :
68
+ if proc .name () == 'ruby' or 'gz sim' in proc .name ():
69
+ # up to version 9 of gz-sim
69
70
proc .kill ()
70
- if 'gz sim' in proc .name ():
71
+ if 'gz-sim' in proc .name ():
72
+ # from version 10 of gz-sim
71
73
proc .kill ()
72
74
rclpy .shutdown ()
73
75
Original file line number Diff line number Diff line change @@ -65,9 +65,11 @@ def setUpClass(cls):
65
65
def tearDownClass (cls ):
66
66
for proc in psutil .process_iter ():
67
67
# check whether the process name matches
68
- if proc .name () == 'ruby' :
68
+ if proc .name () == 'ruby' or 'gz sim' in proc .name ():
69
+ # up to version 9 of gz-sim
69
70
proc .kill ()
70
- if 'gz sim' in proc .name ():
71
+ if 'gz-sim' in proc .name ():
72
+ # from version 10 of gz-sim
71
73
proc .kill ()
72
74
rclpy .shutdown ()
73
75
Original file line number Diff line number Diff line change @@ -65,9 +65,11 @@ def setUpClass(cls):
65
65
def tearDownClass (cls ):
66
66
for proc in psutil .process_iter ():
67
67
# check whether the process name matches
68
- if proc .name () == 'ruby' :
68
+ if proc .name () == 'ruby' or 'gz sim' in proc .name ():
69
+ # up to version 9 of gz-sim
69
70
proc .kill ()
70
- if 'gz sim' in proc .name ():
71
+ if 'gz-sim' in proc .name ():
72
+ # from version 10 of gz-sim
71
73
proc .kill ()
72
74
rclpy .shutdown ()
73
75
Original file line number Diff line number Diff line change @@ -65,9 +65,11 @@ def setUpClass(cls):
65
65
def tearDownClass (cls ):
66
66
for proc in psutil .process_iter ():
67
67
# check whether the process name matches
68
- if proc .name () == 'ruby' :
68
+ if proc .name () == 'ruby' or 'gz sim' in proc .name ():
69
+ # up to version 9 of gz-sim
69
70
proc .kill ()
70
- if 'gz sim' in proc .name ():
71
+ if 'gz-sim' in proc .name ():
72
+ # from version 10 of gz-sim
71
73
proc .kill ()
72
74
rclpy .shutdown ()
73
75
You can’t perform that action at this time.
0 commit comments