Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/platform_tests/test_platform_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
LOG_EXPECT_INSUFFICIENT_FAN_NUM_RE = '.*Insufficient number of working fans warning:.*'
LOG_EXPECT_INSUFFICIENT_FAN_NUM_CLEAR_RE = '.*Insufficient number of working fans warning cleared:.*'

SKIP_ERROR_LOG_SHOW_PLATFORM_TEMP = ['ERR pmon#thermalctld.*int() argument must be a string or a number',
'ERR pmon#thermalctld.*invalid literal for int() with base 10']


def check_sensord_status(ans_host):
"""
Expand Down Expand Up @@ -256,7 +259,7 @@ def test_show_platform_fanstatus_mocked(duthosts, rand_one_dut_hostname, mocker_


@pytest.mark.disable_loganalyzer
@pytest.mark.parametrize('ignore_particular_error_log', [['ERR pmon#thermalctld.*int() argument must be a string or a number']], indirect=True)
@pytest.mark.parametrize('ignore_particular_error_log', [SKIP_ERROR_LOG_SHOW_PLATFORM_TEMP], indirect=True)
def test_show_platform_temperature_mocked(duthosts, rand_one_dut_hostname, mocker_factory, ignore_particular_error_log):
"""
@summary: Check output of 'show platform temperature'
Expand Down