@@ -114,7 +114,9 @@ def extract_value_from_string(line: str) -> str:
114
114
"""
115
115
if '=' in line :
116
116
# 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 (',' )
118
120
else :
119
121
value = line .split (':' )[- 1 ].strip ().replace ('\x1b [0m' , '' )
120
122
@@ -372,7 +374,7 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
372
374
373
375
374
376
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
376
378
if cluster_value != CLUSTER_MEDIA_PLAYBACK :
377
379
print ('SHAO we entered into the mismatch cluster ID block!!!!' )
378
380
print ('cluster_value: ' , cluster_value )
@@ -392,7 +394,7 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
392
394
393
395
394
396
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
396
398
if attribute_value != ATTRIBUTE_CURRENT_PLAYBACK_STATE :
397
399
print ('SHAO we entered into the mismatch attribute ID block!!!!' )
398
400
print ('attr_value: ' , attribute_value )
0 commit comments