From f5894c7562fa1210d16842049b06a0b913264aae Mon Sep 17 00:00:00 2001 From: Chen Yudong Date: Thu, 18 Aug 2022 15:34:04 +0800 Subject: [PATCH] CI: modify timeout of advanced_https_ota_example_bluedroid_gatts --- .../ota/advanced_https_ota/pytest_advanced_ota.py | 12 ++++++------ .../pre_encrypted_ota/pytest_pre_encrypted_ota.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/system/ota/advanced_https_ota/pytest_advanced_ota.py b/examples/system/ota/advanced_https_ota/pytest_advanced_ota.py index aa68a1bc03..a0970c2449 100644 --- a/examples/system/ota/advanced_https_ota/pytest_advanced_ota.py +++ b/examples/system/ota/advanced_https_ota/pytest_advanced_ota.py @@ -129,7 +129,7 @@ def test_examples_protocol_advanced_https_ota_example(dut: Dut) -> None: print('writing to device: {}'.format('https://' + host_ip + ':' + str(server_port) + '/' + bin_name)) dut.write('https://' + host_ip + ':' + str(server_port) + '/' + bin_name) - dut.expect('upgrade successful. Rebooting ...', timeout=60) + dut.expect('upgrade successful. Rebooting ...', timeout=150) finally: thread1.terminate() @@ -383,7 +383,7 @@ def test_examples_protocol_advanced_https_ota_example_chunked(dut: Dut) -> None: dut.expect('Starting Advanced OTA example', timeout=30) print('writing to device: {}'.format('https://' + host_ip + ':8070/' + bin_name)) dut.write('https://' + host_ip + ':8070/' + bin_name) - dut.expect('upgrade successful. Rebooting ...', timeout=60) + dut.expect('upgrade successful. Rebooting ...', timeout=150) # after reboot dut.expect('Loaded app from partition at offset', timeout=30) dut.expect('OTA example app_main start', timeout=10) @@ -437,7 +437,7 @@ def test_examples_protocol_advanced_https_ota_example_redirect_url(dut: Dut) -> try: print('writing to device: {}'.format('https://' + host_ip + ':' + str(redirection_server_port) + '/' + bin_name)) dut.write('https://' + host_ip + ':' + str(redirection_server_port) + '/' + bin_name) - dut.expect('upgrade successful. Rebooting ...', timeout=60) + dut.expect('upgrade successful. Rebooting ...', timeout=150) # after reboot dut.expect('Loaded app from partition at offset', timeout=30) dut.expect('OTA example app_main start', timeout=10) @@ -612,7 +612,7 @@ def test_examples_protocol_advanced_https_ota_example_nimble_gatts(dut: Dut) -> print('Started GAP advertising.') dut.write('https://' + host_ip + ':' + str(server_port) + '/' + bin_name) - dut.expect('upgrade successful. Rebooting ...', timeout=60) + dut.expect('upgrade successful. Rebooting ...', timeout=150) # after reboot dut.expect('Loaded app from partition at offset', timeout=30) dut.expect('OTA example app_main start', timeout=10) @@ -665,7 +665,7 @@ def test_examples_protocol_advanced_https_ota_example_bluedroid_gatts(dut: Dut) print('Started GAP advertising.') dut.write('https://' + host_ip + ':' + str(server_port) + '/' + bin_name) - dut.expect('upgrade successful. Rebooting ...', timeout=60) + dut.expect('upgrade successful. Rebooting ...', timeout=150) # after reboot dut.expect('Loaded app from partition at offset', timeout=30) dut.expect('OTA example app_main start', timeout=10) @@ -716,7 +716,7 @@ def test_examples_protocol_advanced_https_ota_example_openssl_aligned_bin(dut: D dut.expect('Starting Advanced OTA example', timeout=30) print('writing to device: {}'.format('https://' + host_ip + ':8070/' + aligned_bin_name)) dut.write('https://' + host_ip + ':8070/' + aligned_bin_name) - dut.expect('upgrade successful. Rebooting ...', timeout=60) + dut.expect('upgrade successful. Rebooting ...', timeout=150) # after reboot dut.expect('Loaded app from partition at offset', timeout=30) dut.expect('OTA example app_main start', timeout=10) diff --git a/examples/system/ota/pre_encrypted_ota/pytest_pre_encrypted_ota.py b/examples/system/ota/pre_encrypted_ota/pytest_pre_encrypted_ota.py index b9f2f056c4..58286eefbf 100644 --- a/examples/system/ota/pre_encrypted_ota/pytest_pre_encrypted_ota.py +++ b/examples/system/ota/pre_encrypted_ota/pytest_pre_encrypted_ota.py @@ -77,7 +77,7 @@ def test_examples_protocol_pre_encrypted_ota_example(dut: Dut) -> None: dut.write('https://' + host_ip + ':' + str(server_port) + '/' + enc_bin_name) dut.expect('Magic Verified', timeout=30) dut.expect('Reading RSA private key', timeout=30) - dut.expect('upgrade successful. Rebooting', timeout=30) + dut.expect('upgrade successful. Rebooting', timeout=60) # after reboot dut.expect('Loaded app from partition at offset', timeout=30) finally: