Skip to content

Commit 45b43c6

Browse files
authored
[system_health] Fix test_system_health failed due to change of log format (#7649)
What is the motivation for this PR? test_service_checker_with_process_exit failed due to this change: sonic-net/sonic-buildimage#13497 How did you do it? Modify format of verfiying log. How did you verify/test it? Run test Signed-off-by: Yaqiang Zhu <[email protected]>
1 parent 7899108 commit 45b43c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/system_health/test_system_health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_service_checker_with_process_exit(duthosts, enum_rand_one_per_hwsku_hos
134134
# use wait_until to check if SYSTEM_HEALTH_INFO has expected content
135135
# avoid waiting for too long or DEFAULT_INTERVAL is not long enough to refresh db
136136
category = '{}:{}'.format(container, critical_process)
137-
expected_value = "'{}' is not running".format(critical_process)
137+
expected_value = "Process '{}' in container '{}' is not running".format(critical_process, container)
138138
result = wait_until(WAIT_TIMEOUT, 10, 2, check_system_health_info, duthost, category, expected_value)
139139
assert result == True, '{} is not recorded'.format(critical_process)
140140
summary = redis_get_field_value(duthost, STATE_DB, HEALTH_TABLE_NAME, 'summary')

0 commit comments

Comments
 (0)