ci: all jobs use python3 by default

This commit is contained in:
Chen Yu Dong
2020-11-11 11:31:17 +08:00
committed by bot
parent 2558830339
commit 454edcc0a8
17 changed files with 36 additions and 41 deletions

View File

@@ -84,6 +84,7 @@ def test_examples_protocol_http_ws_echo_server(env, extra_data):
ws.write(data=DATA, opcode=expected_opcode)
opcode, data = ws.read()
Utility.console_log("Testing opcode {}: Received opcode:{}, data:{}".format(expected_opcode, opcode, data))
data = data.decode()
if expected_opcode == OPCODE_PING:
dut1.expect("Got a WS PING frame, Replying PONG")
if opcode != OPCODE_PONG or data != DATA:
@@ -96,6 +97,7 @@ def test_examples_protocol_http_ws_echo_server(env, extra_data):
ws.write(data="Trigger async", opcode=OPCODE_TEXT)
opcode, data = ws.read()
Utility.console_log("Testing async send: Received opcode:{}, data:{}".format(opcode, data))
data = data.decode()
if opcode != OPCODE_TEXT or data != "Async data":
raise RuntimeError("Failed to receive correct opcode:{} or data:{}".format(opcode, data))