Просмотр исходного кода

Merge branch 'ci/fix_example_test_advanced_ota' into 'master'

ci(fix): example test advanced_https_ota_example_bluedroid_gatts

Closes IDFCI-1791

See merge request espressif/esp-idf!25486
Mahavir Jain 2 лет назад
Родитель
Сommit
dbd7c4b372
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      examples/system/ota/advanced_https_ota/pytest_advanced_ota.py

+ 3 - 3
examples/system/ota/advanced_https_ota/pytest_advanced_ota.py

@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
 # SPDX-License-Identifier: Unlicense OR CC0-1.0
 import http.server
 import multiprocessing
@@ -659,11 +659,11 @@ def test_examples_protocol_advanced_https_ota_example_bluedroid_gatts(dut: Dut)
             raise ValueError('ENV_TEST_FAILURE: Cannot connect to AP')
         host_ip = get_host_ip4_by_dest_ip(ip_address)
 
-        dut.expect('Starting Advanced OTA example', timeout=30)
-        print('writing to device: {}'.format('https://' + host_ip + ':' + str(server_port) + '/' + bin_name))
         dut.expect('Started advertising.', timeout=30)
         print('Started GAP advertising.')
 
+        time.sleep(1)
+        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=150)
         # after reboot