esp_https_ota: fix for checking chip id at start of OTA

This commit is contained in:
Harshit Malpani
2022-01-10 18:32:37 +05:30
parent b0ca71f302
commit c0b796532b
2 changed files with 41 additions and 14 deletions

View File

@@ -301,7 +301,7 @@ def test_examples_protocol_advanced_https_ota_example_random(env, extra_data):
print('writing to device: {}'.format('https://' + host_ip + ':' + str(server_port) + '/' + random_bin_name))
dut1.write('https://' + host_ip + ':' + str(server_port) + '/' + random_bin_name)
dut1.expect('esp_ota_ops: OTA image has invalid magic byte', timeout=10)
dut1.expect(re.compile(r'esp_https_ota: Mismatch chip id, expected 0, found \d'), timeout=10)
os.remove(binary_file)
thread1.terminate()