Skip to content

Commit 285ee73

Browse files
Changed .clear() to [] and changed back to 1 min.
1 parent db29e28 commit 285ee73

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/examples-linux-tv-casting-app.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ jobs:
4242
- name: Checkout
4343
uses: actions/checkout@v4
4444

45-
- name: Setup Environment
46-
# coreutils for stdbuf
47-
run: brew install coreutils
48-
4945
- name: Checkout submodules & Bootstrap
5046
uses: ./.github/actions/checkout-submodules-and-bootstrap
5147
with:
@@ -71,7 +67,7 @@ jobs:
7167
run: |
7268
./scripts/run_in_build_env.sh \
7369
"python3 ./scripts/tests/run_tv_casting_test.py"
74-
timeout-minutes: 2
70+
timeout-minutes: 1
7571

7672
- name: Uploading Size Reports
7773
uses: ./.github/actions/upload-size-reports

scripts/tests/run_tv_casting_test.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
338338
if time.time() - start_wait_time > VERIFY_SUBSCRIPTION_STATE_MAX_WAIT_SEC:
339339
logging.error(
340340
'The relevant `ReportDataMessage` block was not found in the Linux tv-casting-app process within the timeout.')
341-
report_data_message.clear()
341+
# report_data_message.clear() # SHAO OG
342+
report_data_message = [] # SHAO
342343
return report_data_message
343344

344345
tv_casting_line = tv_casting_app_process.stdout.readline()
@@ -356,13 +357,15 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
356357
if 'Cluster =' in tv_casting_line:
357358
cluster_value = extract_value_from_string(tv_casting_line)
358359
if cluster_value != CLUSTER_MEDIA_PLAYBACK:
359-
report_data_message.clear()
360+
# report_data_message.clear() # SHAO OG
361+
report_data_message = [] # SHAO
360362
continue_parsing = False
361363

362364
elif 'Attribute =' in tv_casting_line:
363365
attribute_value = extract_value_from_string(tv_casting_line)
364366
if attribute_value != ATTRIBUTE_CURRENT_PLAYBACK_STATE:
365-
report_data_message.clear()
367+
# report_data_message.clear() # SHAO OG
368+
report_data_message = [] # SHAO
366369
continue_parsing = False
367370

368371
elif 'InteractionModelRevision' in tv_casting_line:

0 commit comments

Comments
 (0)