Skip to content

Commit e7dd7c1

Browse files
committed
Updated: CI test argument SU_OTA_REQUESTOR_V2.
1 parent bda289e commit e7dd7c1

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/python_testing/TC_SU_2_2.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# --trace-to json:${TRACE_TEST_JSON}.json
4141
# --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
4242
# --string-arg provider_app_path:${OTA_PROVIDER_APP}
43-
# --string-arg ota_image:${OTA_IMAGE_V2}
43+
# --string-arg ota_image:${SU_OTA_REQUESTOR_V2}
4444
# factory-reset: true
4545
# quiet: true
4646
# === END CI TEST ARGUMENTS ===
@@ -446,10 +446,18 @@ async def test_TC_SU_2_2(self):
446446
# --nodeId 2
447447
# ------------------------------------------------------------------------------------
448448

449-
self.LOG_FILE_PATH = "provider.log"
450-
self.KVS_PATH = "/tmp/chip_kvs_provider"
451-
self.provider_app_path = self.user_params.get('provider_app_path', None) # "./out/debug/chip-ota-provider-app"
452-
self.ota_image_v2 = self.user_params.get('ota_image')
449+
if self.is_pics_sdk_ci_only:
450+
logger.info("Using SDK_CI_ONLY parameters for Provider app path and OTA image")
451+
self.LOG_FILE_PATH = "provider.log"
452+
self.KVS_PATH = "/tmp/chip_kvs_provider"
453+
self.provider_app_path = self.user_params.get('provider_app_path', None) # "./out/debug/chip-ota-provider-app"
454+
self.ota_image_v2 = self.user_params.get('ota_image')
455+
else:
456+
logger.info("Using default parameters for Provider app path and OTA image")
457+
self.LOG_FILE_PATH = "provider.log"
458+
self.KVS_PATH = "/tmp/chip_kvs_provider"
459+
self.provider_app_path = "./out/debug/chip-ota-provider-app"
460+
self.ota_image_v2 = "firmware_requestor_v2min.ota"
453461

454462
self.step(0)
455463
# Controller has already commissioned the requestor

0 commit comments

Comments
 (0)