Skip to content

Commit 681c10b

Browse files
Trying to modify to see if the code can work for both MAC local and Linux CI Check.
1 parent a9272c0 commit 681c10b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/tests/run_tv_casting_test.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def extract_value_from_string(line: str) -> str:
114114
"""
115115
if '=' in line:
116116
# value = line.split('=')[-1].strip().replace(',\x1b[0m', '') # SHAO OG
117-
value = line.split('=')[-1].strip().replace(',\n', '')
117+
# value = line.split('=')[-1].strip().replace(',\n', '')
118+
value = line.split('=')[-1].strip().replace('\x1b[0m', '')
119+
value = value.rstrip(',')
118120
else:
119121
value = line.split(':')[-1].strip().replace('\x1b[0m', '')
120122

@@ -372,7 +374,7 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
372374

373375

374376
cluster_value = extract_value_from_string(tv_casting_line)
375-
cluster_value = cluster_value.rstrip(',')
377+
# cluster_value = cluster_value.rstrip(',') # SHAO added to make it work on CI check
376378
if cluster_value != CLUSTER_MEDIA_PLAYBACK:
377379
print('SHAO we entered into the mismatch cluster ID block!!!!')
378380
print('cluster_value: ', cluster_value)
@@ -392,7 +394,7 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
392394

393395

394396
attribute_value = extract_value_from_string(tv_casting_line)
395-
attribute_value = attribute_value.rstrip(', ')
397+
# attribute_value = attribute_value.rstrip(',') # SHAO added to make it work on CI check
396398
if attribute_value != ATTRIBUTE_CURRENT_PLAYBACK_STATE:
397399
print('SHAO we entered into the mismatch attribute ID block!!!!')
398400
print('attr_value: ', attribute_value)

0 commit comments

Comments
 (0)