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 63f6fe34ac
commit 74845d89cb
2 changed files with 47 additions and 14 deletions

View File

@@ -300,7 +300,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()