|
42 | 42 | # --string-arg provider_app_path:${OTA_PROVIDER_APP} |
43 | 43 | # --string-arg ota_image:${SU_OTA_REQUESTOR_V2} |
44 | 44 | # factory-reset: true |
45 | | -# quiet: true |
| 45 | +# quiet: false |
46 | 46 | # === END CI TEST ARGUMENTS === |
47 | 47 |
|
48 | 48 | import asyncio |
|
65 | 65 |
|
66 | 66 | class TC_SU_2_2(SoftwareUpdateBaseTest): |
67 | 67 |
|
68 | | - # LOG_FILE_PATH = "provider.log" |
69 | | - # KVS_PATH = "/tmp/chip_kvs_provider" |
70 | | - # provider_app_path = "./out/debug/chip-ota-provider-app" |
71 | | - # ota_image_v2 = "firmware_requestor_v2min.ota" |
72 | | - |
73 | 68 | async def add_single_ota_provider(self, controller, requestor_node_id: int, provider_node_id: int): |
74 | 69 | """ |
75 | 70 | Adds a single OTA provider to the Requestor's DefaultOTAProviders attribute |
@@ -114,7 +109,6 @@ async def add_single_ota_provider(self, controller, requestor_node_id: int, prov |
114 | 109 | attributes=[(0, attr)], |
115 | 110 | nodeId=requestor_node_id |
116 | 111 | ) |
117 | | - # ChipDeviceCtrl.writeattribute_log(resp) |
118 | 112 | logger.info(f'Prerequisite #4.0 - Write DefaultOTAProviders response: {resp}') |
119 | 113 | asserts.assert_equal(resp[0].Status, Status.Success, "Failed to write DefaultOTAProviders attribute") |
120 | 114 |
|
@@ -451,19 +445,6 @@ async def test_TC_SU_2_2(self): |
451 | 445 | self.provider_app_path = self.user_params.get('provider_app_path', None) |
452 | 446 | self.ota_image_v2 = self.user_params.get('ota_image') |
453 | 447 |
|
454 | | - # if self.is_pics_sdk_ci_only: |
455 | | - # logger.info("Using SDK_CI_ONLY parameters for Provider app path and OTA image") |
456 | | - # self.LOG_FILE_PATH = "provider.log" |
457 | | - # self.KVS_PATH = "/tmp/chip_kvs_provider" |
458 | | - # self.provider_app_path = self.user_params.get('provider_app_path', None) # "./out/debug/chip-ota-provider-app" |
459 | | - # self.ota_image_v2 = self.user_params.get('ota_image') |
460 | | - # else: |
461 | | - # logger.info("Using default parameters for Provider app path and OTA image") |
462 | | - # self.LOG_FILE_PATH = "provider.log" |
463 | | - # self.KVS_PATH = "/tmp/chip_kvs_provider" |
464 | | - # self.provider_app_path = "./out/debug/chip-ota-provider-app" |
465 | | - # self.ota_image_v2 = "firmware_requestor_v2min.ota" |
466 | | - |
467 | 448 | self.step(0) |
468 | 449 | # Controller has already commissioned the requestor |
469 | 450 |
|
@@ -557,7 +538,7 @@ async def test_TC_SU_2_2(self): |
557 | 538 | # ------------------------------------------------------------------------------------ |
558 | 539 | # [STEP_1]: Step #1.2 - Track OTA attributes: UpdateState and UpdateStateProgress |
559 | 540 | # [STEP_1]: Step #1.2.1 - UpdateState matcher: Track "Downloading" |
560 | | - # [STEP_1]: Step #1.2.2 - UpdateStateProgress matcher: Track non-null values "rage 1–99" and final "None" |
| 541 | + # [STEP_1]: Step #1.2.2 - UpdateStateProgress matcher: Track non-null values "rage 1–100" and final "None" |
561 | 542 | # ------------------------------------------------------------------------------------ |
562 | 543 | logger.info( |
563 | 544 | f'{step_number}: Step #1.1 - Started subscription for UpdateState and UpdateStateProgress attributes ' |
@@ -1085,8 +1066,6 @@ def matcher_idle_state_no_download(report): |
1085 | 1066 | nonlocal state_sequence_notavailable |
1086 | 1067 | val = report.Data.newState |
1087 | 1068 | prev_state = report.Data.previousState |
1088 | | - # event_reason = report.Data.reason |
1089 | | - # event_target_sw = report.Data.targetSoftwareVersion |
1090 | 1069 |
|
1091 | 1070 | if val is None: |
1092 | 1071 | return False |
@@ -1207,8 +1186,6 @@ def matcher_idle_state_no_download_invalid_uri(report): |
1207 | 1186 | nonlocal state_sequence_notavailable |
1208 | 1187 | val = report.Data.newState |
1209 | 1188 | prev_state = report.Data.previousState |
1210 | | - # event_reason = report.Data.reason |
1211 | | - # event_target_sw = report.Data.targetSoftwareVersion |
1212 | 1189 |
|
1213 | 1190 | if val is None: |
1214 | 1191 | return False |
|
0 commit comments