ci: using python3 to tun target test

This commit is contained in:
Chen Yudong
2021-03-16 11:41:29 +08:00
committed by bot
parent c8d15588e5
commit fa270d72c7
14 changed files with 36 additions and 42 deletions

View File

@@ -36,13 +36,13 @@ def tcp_client(address, payload):
print('Could not open socket: ', msg)
sock.close()
raise
sock.sendall(payload)
sock.sendall(payload.encode())
data = sock.recv(1024)
if not data:
return
print('Reply : ' + data.decode())
sock.close()
return data
return data.decode()
@ttfw_idf.idf_example_test(env_tag="Example_WIFI")