Skip to content

Commit 250ecf3

Browse files
Added explicit rstrip(',').
1 parent 9c9ad2d commit 250ecf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/tests/run_tv_casting_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
372372

373373

374374
cluster_value = extract_value_from_string(tv_casting_line)
375+
cluster_value = cluster_value.rstrip(',')
375376
if cluster_value != CLUSTER_MEDIA_PLAYBACK:
376377
print('SHAO we entered into the mismatch cluster ID block!!!!')
377378
print('cluster_value: ', cluster_value)
@@ -391,6 +392,7 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
391392

392393

393394
attribute_value = extract_value_from_string(tv_casting_line)
395+
attribute_value = attribute_value.rstrip(', ')
394396
if attribute_value != ATTRIBUTE_CURRENT_PLAYBACK_STATE:
395397
print('SHAO we entered into the mismatch attribute ID block!!!!')
396398
print('attr_value: ', attribute_value)

0 commit comments

Comments
 (0)