File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
from tests .common .helpers .assertions import pytest_assert
10
10
from tests .common .helpers .platform_api import chassis , fan_drawer , fan_drawer_fan
11
-
11
+ from tests . platform_tests . thermal_control_test_helper import start_thermal_control_daemon , stop_thermal_control_daemon
12
12
from platform_api_test_base import PlatformApiTestBase
13
13
14
14
###################################################
@@ -48,7 +48,7 @@ class TestFanDrawerFans(PlatformApiTestBase):
48
48
# level, so we must do the same here to prevent a scope mismatch.
49
49
50
50
@pytest .fixture (scope = "function" , autouse = True )
51
- def setup (self , platform_api_conn ):
51
+ def setup (self , platform_api_conn , duthost ):
52
52
if self .num_fan_drawers is None :
53
53
try :
54
54
self .num_fan_drawers = chassis .get_num_fan_drawers (platform_api_conn )
@@ -57,7 +57,9 @@ def setup(self, platform_api_conn):
57
57
else :
58
58
if self .num_fan_drawers == 0 :
59
59
pytest .skip ("No fan drawers found on device" )
60
-
60
+ stop_thermal_control_daemon (duthost )
61
+ yield
62
+ start_thermal_control_daemon (duthost )
61
63
#
62
64
# Helper functions
63
65
#
You can’t perform that action at this time.
0 commit comments