mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ieee802154: increase the timeout for ieee802.15.4 CI test
This commit is contained in:
parent
a154a93430
commit
c985267ccf
@ -46,9 +46,9 @@ def dlt_pendingtable(ser:IdfDut, addr:str) -> None:
|
|||||||
cmd = cmd + '\n'
|
cmd = cmd + '\n'
|
||||||
ser.write(cmd)
|
ser.write(cmd)
|
||||||
if len(addr_list) == 2:
|
if len(addr_list) == 2:
|
||||||
ser.expect('delete pending shortaddr: {}'.format(addr_field), timeout=1)
|
ser.expect('delete pending shortaddr: {}'.format(addr_field), timeout=10)
|
||||||
else:
|
else:
|
||||||
ser.expect('delete pending extaddr: {}'.format(addr_field), timeout=1)
|
ser.expect('delete pending extaddr: {}'.format(addr_field), timeout=10)
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
|
|
||||||
|
|
||||||
@ -60,9 +60,9 @@ def add_pendingtable(ser:IdfDut, addr:str='') -> None:
|
|||||||
addr_field = addr_field.lower()
|
addr_field = addr_field.lower()
|
||||||
ser.write(cmd)
|
ser.write(cmd)
|
||||||
if len(addr.split(' ')) == 2:
|
if len(addr.split(' ')) == 2:
|
||||||
ser.expect('add pending shortaddr: {}'.format(addr_field), timeout=1)
|
ser.expect('add pending shortaddr: {}'.format(addr_field), timeout=10)
|
||||||
else:
|
else:
|
||||||
ser.expect('add pending extaddr: {}'.format(addr_field), timeout=1)
|
ser.expect('add pending extaddr: {}'.format(addr_field), timeout=10)
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
|
|
||||||
|
|
||||||
@ -120,30 +120,30 @@ def dlt_short_extern_addr_in_pendingtable(ser:IdfDut, table:List, short:int=5, e
|
|||||||
def test_based_txrx(dut: Tuple[IdfDut, IdfDut]) -> None:
|
def test_based_txrx(dut: Tuple[IdfDut, IdfDut]) -> None:
|
||||||
transmit = dut[0]
|
transmit = dut[0]
|
||||||
receive = dut[1]
|
receive = dut[1]
|
||||||
receive.expect('ieee802154>', timeout=1)
|
receive.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('channel -s 23')
|
transmit.write('channel -s 23')
|
||||||
transmit.expect('set channel: 23', timeout=1)
|
transmit.expect('set channel: 23', timeout=10)
|
||||||
receive.write('channel -s 23')
|
receive.write('channel -s 23')
|
||||||
receive.expect('set channel: 23', timeout=1)
|
receive.expect('set channel: 23', timeout=10)
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('tx -l 10')
|
transmit.write('tx -l 10')
|
||||||
transmit.expect('tx sfd done, Radio state: 3', timeout=1)
|
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
|
||||||
transmit.expect('Tx Done 10 bytes', timeout=1)
|
transmit.expect('Tx Done 10 bytes', timeout=10)
|
||||||
transmit.expect('00 01 02 03 04 05 06 07', timeout=1)
|
transmit.expect('00 01 02 03 04 05 06 07', timeout=10)
|
||||||
transmit.expect('08 09 00 00 00 00 00 00', timeout=1)
|
transmit.expect('08 09 00 00 00 00 00 00', timeout=10)
|
||||||
receive.expect('rx sfd done, Radio state: 2', timeout=1)
|
receive.expect('rx sfd done, Radio state: 2', timeout=10)
|
||||||
receive.expect('Rx Done 10 bytes', timeout=1)
|
receive.expect('Rx Done 10 bytes', timeout=10)
|
||||||
receive.expect('00 01 02 03 04 05 06 07', timeout=1)
|
receive.expect('00 01 02 03 04 05 06 07', timeout=10)
|
||||||
receive.write('rx -r 0')
|
receive.write('rx -r 0')
|
||||||
receive.expect('radio exit receive mode', timeout=1)
|
receive.expect('radio exit receive mode', timeout=10)
|
||||||
transmit.write('tx -l 10')
|
transmit.write('tx -l 10')
|
||||||
transmit.expect('tx sfd done, Radio state: 3', timeout=1)
|
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
|
||||||
transmit.expect('Tx Done 10 bytes', timeout=1)
|
transmit.expect('Tx Done 10 bytes', timeout=10)
|
||||||
transmit.expect('00 01 02 03 04 05 06 07', timeout=1)
|
transmit.expect('00 01 02 03 04 05 06 07', timeout=10)
|
||||||
transmit.expect('08 09 00 00 00 00 00 00', timeout=1)
|
transmit.expect('08 09 00 00 00 00 00 00', timeout=10)
|
||||||
tmp = receive.expect(pexpect.TIMEOUT, timeout=5)
|
tmp = receive.expect(pexpect.TIMEOUT, timeout=10)
|
||||||
assert 'Rx Done' not in str(tmp)
|
assert 'Rx Done' not in str(tmp)
|
||||||
|
|
||||||
|
|
||||||
@ -155,10 +155,10 @@ def test_based_txrx(dut: Tuple[IdfDut, IdfDut]) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_energy(dut: IdfDut) -> None:
|
def test_based_energy(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('ed -d 8')
|
transmit.write('ed -d 8')
|
||||||
transmit.expect('ed start', timeout=1)
|
transmit.expect('ed start', timeout=10)
|
||||||
transmit.expect('ed_scan_rss_value:', timeout=1)
|
transmit.expect('ed_scan_rss_value:', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -169,11 +169,11 @@ def test_based_energy(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_channel(dut: IdfDut) -> None:
|
def test_based_channel(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('channel -s 23')
|
transmit.write('channel -s 23')
|
||||||
transmit.expect('set channel: 23', timeout=1)
|
transmit.expect('set channel: 23', timeout=10)
|
||||||
transmit.write('channel -g')
|
transmit.write('channel -g')
|
||||||
transmit.expect('current channel: 23', timeout=1)
|
transmit.expect('current channel: 23', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -184,11 +184,11 @@ def test_based_channel(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_txpower(dut: IdfDut) -> None:
|
def test_based_txpower(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('txpower -s 13')
|
transmit.write('txpower -s 13')
|
||||||
transmit.expect('set txpower: 13', timeout=1)
|
transmit.expect('set txpower: 13', timeout=10)
|
||||||
transmit.write('txpower -g')
|
transmit.write('txpower -g')
|
||||||
transmit.expect('current txpower: 13', timeout=1)
|
transmit.expect('current txpower: 13', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -199,15 +199,15 @@ def test_based_txpower(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_promiscuous(dut: IdfDut) -> None:
|
def test_based_promiscuous(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('promisc -e')
|
transmit.write('promisc -e')
|
||||||
transmit.expect('promiscuous mode is enabled', timeout=1)
|
transmit.expect('promiscuous mode is enabled', timeout=10)
|
||||||
transmit.write('promisc -g')
|
transmit.write('promisc -g')
|
||||||
transmit.expect('hardware promiscuous mode was enabled', timeout=1)
|
transmit.expect('hardware promiscuous mode was enabled', timeout=10)
|
||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled', timeout=1)
|
transmit.expect('promiscuous mode is disabled', timeout=10)
|
||||||
transmit.write('promisc -g')
|
transmit.write('promisc -g')
|
||||||
transmit.expect('hardware promiscuous mode was disabled', timeout=1)
|
transmit.expect('hardware promiscuous mode was disabled', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -218,11 +218,11 @@ def test_based_promiscuous(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_panid(dut: IdfDut) -> None:
|
def test_based_panid(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('panid 0x60')
|
transmit.write('panid 0x60')
|
||||||
transmit.expect('set panid: 0x60', timeout=1)
|
transmit.expect('set panid: 0x60', timeout=10)
|
||||||
transmit.write('panid -g')
|
transmit.write('panid -g')
|
||||||
transmit.expect('current panid: 0x60', timeout=1)
|
transmit.expect('current panid: 0x60', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -233,11 +233,11 @@ def test_based_panid(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_shortaddr(dut: IdfDut) -> None:
|
def test_based_shortaddr(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('shortaddr 0x1234')
|
transmit.write('shortaddr 0x1234')
|
||||||
transmit.expect('set shortaddr: 0x1234', timeout=1)
|
transmit.expect('set shortaddr: 0x1234', timeout=10)
|
||||||
transmit.write('shortaddr -g')
|
transmit.write('shortaddr -g')
|
||||||
transmit.expect('current shortaddr: 0x1234', timeout=1)
|
transmit.expect('current shortaddr: 0x1234', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -248,11 +248,11 @@ def test_based_shortaddr(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_extaddr(dut: IdfDut) -> None:
|
def test_based_extaddr(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('extaddr 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08')
|
transmit.write('extaddr 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08')
|
||||||
transmit.expect('set extaddr: 0807060504030201', timeout=1)
|
transmit.expect('set extaddr: 0807060504030201', timeout=10)
|
||||||
transmit.write('extaddr -g')
|
transmit.write('extaddr -g')
|
||||||
transmit.expect('get extaddr: 0807060504030201', timeout=1)
|
transmit.expect('get extaddr: 0807060504030201', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -263,15 +263,15 @@ def test_based_extaddr(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_coordinator(dut: IdfDut) -> None:
|
def test_based_coordinator(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('coordinator -e')
|
transmit.write('coordinator -e')
|
||||||
transmit.expect('hardware coordinator is enabled', timeout=1)
|
transmit.expect('hardware coordinator is enabled', timeout=10)
|
||||||
transmit.write('coordinator -g')
|
transmit.write('coordinator -g')
|
||||||
transmit.expect('hardware coordinator was enabled', timeout=1)
|
transmit.expect('hardware coordinator was enabled', timeout=10)
|
||||||
transmit.write('coordinator -d')
|
transmit.write('coordinator -d')
|
||||||
transmit.expect('hardware coordinator is disabled', timeout=1)
|
transmit.expect('hardware coordinator is disabled', timeout=10)
|
||||||
transmit.write('coordinator -g')
|
transmit.write('coordinator -g')
|
||||||
transmit.expect('hardware coordinator was disabled', timeout=1)
|
transmit.expect('hardware coordinator was disabled', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -282,17 +282,17 @@ def test_based_coordinator(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_pending(dut: IdfDut) -> None:
|
def test_based_pending(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('pending -m 2')
|
transmit.write('pending -m 2')
|
||||||
transmit.expect('set auto pending mode as: 2', timeout=1)
|
transmit.expect('set auto pending mode as: 2', timeout=10)
|
||||||
transmit.write('pending -g')
|
transmit.write('pending -g')
|
||||||
transmit.expect('get auto pending mode as: 2', timeout=1)
|
transmit.expect('get auto pending mode as: 2', timeout=10)
|
||||||
add_pendingtable(transmit, addr='0x01 0x02')
|
add_pendingtable(transmit, addr='0x01 0x02')
|
||||||
add_pendingtable(transmit, addr='0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08')
|
add_pendingtable(transmit, addr='0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08')
|
||||||
dlt_pendingtable(transmit, addr='0x22 0x11')
|
dlt_pendingtable(transmit, addr='0x22 0x11')
|
||||||
dlt_pendingtable(transmit, addr='0x77 0x66 0x55 0x44 0x33 0x22 0x11 0x00')
|
dlt_pendingtable(transmit, addr='0x77 0x66 0x55 0x44 0x33 0x22 0x11 0x00')
|
||||||
transmit.write('pending -r')
|
transmit.write('pending -r')
|
||||||
transmit.expect('clear the pending address table', timeout=1)
|
transmit.expect('clear the pending address table', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -303,13 +303,13 @@ def test_based_pending(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_cca(dut: IdfDut) -> None:
|
def test_based_cca(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('cca -v -60')
|
transmit.write('cca -v -60')
|
||||||
transmit.expect('set cca threshold as: -60', timeout=1)
|
transmit.expect('set cca threshold as: -60', timeout=10)
|
||||||
transmit.write('cca -m 0')
|
transmit.write('cca -m 0')
|
||||||
transmit.expect('set cca mode as: 0', timeout=1)
|
transmit.expect('set cca mode as: 0', timeout=10)
|
||||||
transmit.write('cca -g')
|
transmit.write('cca -g')
|
||||||
transmit.expect('threshold:-60 dB, mode: 0', timeout=1)
|
transmit.expect('threshold:-60 dB, mode: 0', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -322,41 +322,41 @@ def test_based_cca(dut: IdfDut) -> None:
|
|||||||
def test_based_autoack(dut: Tuple[IdfDut, IdfDut]) -> None:
|
def test_based_autoack(dut: Tuple[IdfDut, IdfDut]) -> None:
|
||||||
transmit = dut[0]
|
transmit = dut[0]
|
||||||
receive = dut[1]
|
receive = dut[1]
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('channel -s 23')
|
transmit.write('channel -s 23')
|
||||||
transmit.expect('set channel: 23', timeout=1)
|
transmit.expect('set channel: 23', timeout=10)
|
||||||
receive.expect('ieee802154>', timeout=1)
|
receive.expect('ieee802154>', timeout=10)
|
||||||
receive.write('channel -s 23')
|
receive.write('channel -s 23')
|
||||||
receive.expect('set channel: 23', timeout=1)
|
receive.expect('set channel: 23', timeout=10)
|
||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled', timeout=1)
|
transmit.expect('promiscuous mode is disabled', timeout=10)
|
||||||
receive.write('promisc -d')
|
receive.write('promisc -d')
|
||||||
receive.expect('promiscuous mode is disabled', timeout=1)
|
receive.expect('promiscuous mode is disabled', timeout=10)
|
||||||
transmit.write('panid 0x280A')
|
transmit.write('panid 0x280A')
|
||||||
transmit.expect('set panid: 0x280a', timeout=1)
|
transmit.expect('set panid: 0x280a', timeout=10)
|
||||||
transmit.write('shortaddr 0x435A')
|
transmit.write('shortaddr 0x435A')
|
||||||
transmit.expect('set shortaddr: 0x435a', timeout=1)
|
transmit.expect('set shortaddr: 0x435a', timeout=10)
|
||||||
receive.write('panid 0x94BC')
|
receive.write('panid 0x94BC')
|
||||||
receive.expect('set panid: 0x94bc', timeout=1)
|
receive.expect('set panid: 0x94bc', timeout=10)
|
||||||
receive.write('shortaddr 0x6FDB')
|
receive.write('shortaddr 0x6FDB')
|
||||||
receive.expect('set shortaddr: 0x6fdb', timeout=1)
|
receive.expect('set shortaddr: 0x6fdb', timeout=10)
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
|
|
||||||
transmit.write('tx 0x20 0x88 0x00 0x0A 0x28 0xDB 0x6F 0xBC 0x94 0x5A 0x43 0x68 0x02 0xaa 0x15 0x30 0x01 0x02')
|
transmit.write('tx 0x20 0x88 0x00 0x0A 0x28 0xDB 0x6F 0xBC 0x94 0x5A 0x43 0x68 0x02 0xaa 0x15 0x30 0x01 0x02')
|
||||||
transmit.expect('tx sfd done, Radio state: 3', timeout=1)
|
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
|
||||||
transmit.expect('rx sfd done, Radio state: 3', timeout=1)
|
transmit.expect('rx sfd done, Radio state: 3', timeout=10)
|
||||||
transmit.expect('Tx Done 18 bytes', timeout=1)
|
transmit.expect('Tx Done 18 bytes', timeout=10)
|
||||||
transmit.expect('20 88 00 0a 28 db 6f bc', timeout=1)
|
transmit.expect('20 88 00 0a 28 db 6f bc', timeout=10)
|
||||||
transmit.expect('94 5a 43 68 02 aa 15 30', timeout=1)
|
transmit.expect('94 5a 43 68 02 aa 15 30', timeout=10)
|
||||||
|
|
||||||
receive.expect('rx sfd done, Radio state: 2', timeout=1)
|
receive.expect('rx sfd done, Radio state: 2', timeout=10)
|
||||||
receive.expect('Rx Done 18 bytes', timeout=1)
|
receive.expect('Rx Done 18 bytes', timeout=10)
|
||||||
receive.expect('20 88 00 0a 28 db 6f bc', timeout=1)
|
receive.expect('20 88 00 0a 28 db 6f bc', timeout=10)
|
||||||
receive.expect('94 5a 43 68 02 aa 15 30', timeout=1)
|
receive.expect('94 5a 43 68 02 aa 15 30', timeout=10)
|
||||||
|
|
||||||
transmit.expect('Rx ack 5 bytes', timeout=1)
|
transmit.expect('Rx ack 5 bytes', timeout=10)
|
||||||
transmit.expect('02 00 00', timeout=1)
|
transmit.expect('02 00 00', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -371,7 +371,7 @@ def test_based_autopending(dut: Tuple[IdfDut, IdfDut]) -> None:
|
|||||||
receive = dut[1]
|
receive = dut[1]
|
||||||
|
|
||||||
# mode 0: CMD ID = 0x04 --> FP = 1
|
# mode 0: CMD ID = 0x04 --> FP = 1
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('rx -r 0')
|
transmit.write('rx -r 0')
|
||||||
transmit.expect('radio exit receive mode')
|
transmit.expect('radio exit receive mode')
|
||||||
transmit.write('channel -s 23')
|
transmit.write('channel -s 23')
|
||||||
@ -379,182 +379,182 @@ def test_based_autopending(dut: Tuple[IdfDut, IdfDut]) -> None:
|
|||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled')
|
transmit.expect('promiscuous mode is disabled')
|
||||||
|
|
||||||
receive.expect('ieee802154>', timeout=1)
|
receive.expect('ieee802154>', timeout=10)
|
||||||
receive.write('pending -r')
|
receive.write('pending -r')
|
||||||
receive.expect('clear the pending address table', timeout=1)
|
receive.expect('clear the pending address table', timeout=10)
|
||||||
receive.write('channel -s 23')
|
receive.write('channel -s 23')
|
||||||
receive.expect('set channel: 23', timeout=1)
|
receive.expect('set channel: 23', timeout=10)
|
||||||
receive.write('promisc -d')
|
receive.write('promisc -d')
|
||||||
receive.expect('promiscuous mode is disabled', timeout=1)
|
receive.expect('promiscuous mode is disabled', timeout=10)
|
||||||
receive.write('rx -r 0')
|
receive.write('rx -r 0')
|
||||||
receive.expect('radio exit receive mode', timeout=1)
|
receive.expect('radio exit receive mode', timeout=10)
|
||||||
receive.write('pending -m 0')
|
receive.write('pending -m 0')
|
||||||
receive.expect('set auto pending mode as: 0', timeout=1)
|
receive.expect('set auto pending mode as: 0', timeout=10)
|
||||||
receive.write('panid 0x2E74')
|
receive.write('panid 0x2E74')
|
||||||
receive.expect('set panid: 0x2e74', timeout=1)
|
receive.expect('set panid: 0x2e74', timeout=10)
|
||||||
receive.write('shortaddr 0x2649')
|
receive.write('shortaddr 0x2649')
|
||||||
receive.expect('set shortaddr: 0x2649', timeout=1)
|
receive.expect('set shortaddr: 0x2649', timeout=10)
|
||||||
|
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
transmit.write('tx 0x23 0x08 0x00 0x74 0x2E 0x49 0x26 0x04 0x53 0x04 0xe3 0x71 0xc2 0x36 0xf7 0xa5 0x2b 0x68 0x79 0x8c 0x72 0x50 0x8b 0x61 0x55 0x56')
|
transmit.write('tx 0x23 0x08 0x00 0x74 0x2E 0x49 0x26 0x04 0x53 0x04 0xe3 0x71 0xc2 0x36 0xf7 0xa5 0x2b 0x68 0x79 0x8c 0x72 0x50 0x8b 0x61 0x55 0x56')
|
||||||
transmit.expect('Rx ack 5 bytes', timeout=1)
|
transmit.expect('Rx ack 5 bytes', timeout=10)
|
||||||
transmit.expect('12 00 00', timeout=1)
|
transmit.expect('12 00 00', timeout=10)
|
||||||
|
|
||||||
# mode 0: CMD ID != 0x04 --> FP = 0
|
# mode 0: CMD ID != 0x04 --> FP = 0
|
||||||
receive.write('pending -r')
|
receive.write('pending -r')
|
||||||
receive.expect('clear the pending address table', timeout=1)
|
receive.expect('clear the pending address table', timeout=10)
|
||||||
receive.write('promisc -d')
|
receive.write('promisc -d')
|
||||||
receive.expect('promiscuous mode is disabled', timeout=1)
|
receive.expect('promiscuous mode is disabled', timeout=10)
|
||||||
|
|
||||||
transmit.write('rx -r 0')
|
transmit.write('rx -r 0')
|
||||||
transmit.expect('radio exit receive mode', timeout=1)
|
transmit.expect('radio exit receive mode', timeout=10)
|
||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled', timeout=1)
|
transmit.expect('promiscuous mode is disabled', timeout=10)
|
||||||
|
|
||||||
receive.write('rx -r 0')
|
receive.write('rx -r 0')
|
||||||
receive.expect('radio exit receive mode', timeout=1)
|
receive.expect('radio exit receive mode', timeout=10)
|
||||||
receive.write('pending -m 0')
|
receive.write('pending -m 0')
|
||||||
receive.expect('set auto pending mode as: 0', timeout=1)
|
receive.expect('set auto pending mode as: 0', timeout=10)
|
||||||
receive.write('panid 0x3E66')
|
receive.write('panid 0x3E66')
|
||||||
receive.expect('set panid: 0x3e66', timeout=1)
|
receive.expect('set panid: 0x3e66', timeout=10)
|
||||||
receive.write('shortaddr 0x3970')
|
receive.write('shortaddr 0x3970')
|
||||||
receive.expect('set shortaddr: 0x3970', timeout=1)
|
receive.expect('set shortaddr: 0x3970', timeout=10)
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
transmit.write('tx 0x23 0x08 0x0c 0x66 0x3E 0x70 0x39 0x01 0xef 0x2e 0x9f 0xf3 0xfe 0x75 0x99 0x35 0x66 0xd3')
|
transmit.write('tx 0x23 0x08 0x0c 0x66 0x3E 0x70 0x39 0x01 0xef 0x2e 0x9f 0xf3 0xfe 0x75 0x99 0x35 0x66 0xd3')
|
||||||
transmit.expect('Rx ack 5 bytes', timeout=1)
|
transmit.expect('Rx ack 5 bytes', timeout=10)
|
||||||
transmit.expect('02 00 0c', timeout=1)
|
transmit.expect('02 00 0c', timeout=10)
|
||||||
|
|
||||||
# mode 1: CMD ID = 0x04, src addr in pending table --> FP = 1
|
# mode 1: CMD ID = 0x04, src addr in pending table --> FP = 1
|
||||||
receive.write('pending -r')
|
receive.write('pending -r')
|
||||||
receive.expect('clear the pending address table', timeout=1)
|
receive.expect('clear the pending address table', timeout=10)
|
||||||
receive.write('promisc -d')
|
receive.write('promisc -d')
|
||||||
receive.expect('promiscuous mode is disabled', timeout=1)
|
receive.expect('promiscuous mode is disabled', timeout=10)
|
||||||
receive.write('rx -r 0')
|
receive.write('rx -r 0')
|
||||||
receive.expect('radio exit receive mode', timeout=1)
|
receive.expect('radio exit receive mode', timeout=10)
|
||||||
receive.write('pending -m 1')
|
receive.write('pending -m 1')
|
||||||
receive.expect('set auto pending mode as: 1', timeout=1)
|
receive.expect('set auto pending mode as: 1', timeout=10)
|
||||||
receive.write('panid 0x2D9B')
|
receive.write('panid 0x2D9B')
|
||||||
receive.expect('set panid: 0x2d9b', timeout=1)
|
receive.expect('set panid: 0x2d9b', timeout=10)
|
||||||
receive.write('shortaddr 0x3B21')
|
receive.write('shortaddr 0x3B21')
|
||||||
receive.expect('set shortaddr: 0x3b21', timeout=1)
|
receive.expect('set shortaddr: 0x3b21', timeout=10)
|
||||||
|
|
||||||
transmit.write('rx -r 0')
|
transmit.write('rx -r 0')
|
||||||
transmit.expect('radio exit receive mode', timeout=1)
|
transmit.expect('radio exit receive mode', timeout=10)
|
||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled', timeout=1)
|
transmit.expect('promiscuous mode is disabled', timeout=10)
|
||||||
transmit.write('panid 0xD9C3')
|
transmit.write('panid 0xD9C3')
|
||||||
transmit.expect('set panid: 0xd9c3', timeout=1)
|
transmit.expect('set panid: 0xd9c3', timeout=10)
|
||||||
transmit.write('shortaddr 0x93EE')
|
transmit.write('shortaddr 0x93EE')
|
||||||
transmit.expect('set shortaddr: 0x93ee', timeout=1)
|
transmit.expect('set shortaddr: 0x93ee', timeout=10)
|
||||||
|
|
||||||
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0xEE 0x93')
|
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0xEE 0x93')
|
||||||
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
||||||
add_pendingtable(receive, '0xEE 0x93')
|
add_pendingtable(receive, '0xEE 0x93')
|
||||||
|
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
transmit.write('tx 0x23 0x88 0x00 0x9B 0x2D 0x21 0x3B 0xC3 0xD9 0xEE 0x93 0x04 0xc8 0x05 0xf8 0x1d 0x6e 0xe3')
|
transmit.write('tx 0x23 0x88 0x00 0x9B 0x2D 0x21 0x3B 0xC3 0xD9 0xEE 0x93 0x04 0xc8 0x05 0xf8 0x1d 0x6e 0xe3')
|
||||||
transmit.expect('Rx ack 5 bytes', timeout=1)
|
transmit.expect('Rx ack 5 bytes', timeout=10)
|
||||||
transmit.expect('12 00 00', timeout=1)
|
transmit.expect('12 00 00', timeout=10)
|
||||||
|
|
||||||
# mode 1: CMD ID = 0x04, src addr not in pending table --> FP = 0
|
# mode 1: CMD ID = 0x04, src addr not in pending table --> FP = 0
|
||||||
receive.write('pending -r')
|
receive.write('pending -r')
|
||||||
receive.expect('clear the pending address table', timeout=1)
|
receive.expect('clear the pending address table', timeout=10)
|
||||||
receive.write('promisc -d')
|
receive.write('promisc -d')
|
||||||
receive.expect('promiscuous mode is disabled', timeout=1)
|
receive.expect('promiscuous mode is disabled', timeout=10)
|
||||||
receive.write('rx -r 0')
|
receive.write('rx -r 0')
|
||||||
receive.expect('radio exit receive mode', timeout=1)
|
receive.expect('radio exit receive mode', timeout=10)
|
||||||
receive.write('pending -m 1')
|
receive.write('pending -m 1')
|
||||||
receive.expect('set auto pending mode as: 1', timeout=1)
|
receive.expect('set auto pending mode as: 1', timeout=10)
|
||||||
receive.write('panid 0x9FE3')
|
receive.write('panid 0x9FE3')
|
||||||
receive.expect('set panid: 0x9fe3', timeout=1)
|
receive.expect('set panid: 0x9fe3', timeout=10)
|
||||||
receive.write('shortaddr 0x9E20')
|
receive.write('shortaddr 0x9E20')
|
||||||
receive.expect('set shortaddr: 0x9e20', timeout=1)
|
receive.expect('set shortaddr: 0x9e20', timeout=10)
|
||||||
|
|
||||||
transmit.write('rx -r 0')
|
transmit.write('rx -r 0')
|
||||||
transmit.expect('radio exit receive mode', timeout=1)
|
transmit.expect('radio exit receive mode', timeout=10)
|
||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled', timeout=1)
|
transmit.expect('promiscuous mode is disabled', timeout=10)
|
||||||
transmit.write('panid 0xE718')
|
transmit.write('panid 0xE718')
|
||||||
transmit.expect('set panid: 0xe718', timeout=1)
|
transmit.expect('set panid: 0xe718', timeout=10)
|
||||||
transmit.write('shortaddr 0xC466')
|
transmit.write('shortaddr 0xC466')
|
||||||
transmit.expect('set shortaddr: 0xc466', timeout=1)
|
transmit.expect('set shortaddr: 0xc466', timeout=10)
|
||||||
|
|
||||||
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0x66 0xC4')
|
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0x66 0xC4')
|
||||||
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
||||||
|
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
transmit.write('tx 0x2b 0x88 0x08 0xE3 0x9F 0x20 0x9E 0x18 0xE7 0x66 0xC4 0x17 0x92 0x8a 0xcd 0x4c 0xd0 0x20 0x40 0x0d 0x46 0x04 0xa0 0xe3 0x9c 0x57')
|
transmit.write('tx 0x2b 0x88 0x08 0xE3 0x9F 0x20 0x9E 0x18 0xE7 0x66 0xC4 0x17 0x92 0x8a 0xcd 0x4c 0xd0 0x20 0x40 0x0d 0x46 0x04 0xa0 0xe3 0x9c 0x57')
|
||||||
transmit.expect('Rx ack 5 bytes', timeout=1)
|
transmit.expect('Rx ack 5 bytes', timeout=10)
|
||||||
transmit.expect('02 00 08', timeout=1)
|
transmit.expect('02 00 08', timeout=10)
|
||||||
|
|
||||||
# mode 2: frame type is data, src addr in pending table --> FP = 1
|
# mode 2: frame type is data, src addr in pending table --> FP = 1
|
||||||
receive.write('pending -r')
|
receive.write('pending -r')
|
||||||
receive.expect('clear the pending address table', timeout=1)
|
receive.expect('clear the pending address table', timeout=10)
|
||||||
receive.write('promisc -d')
|
receive.write('promisc -d')
|
||||||
receive.expect('promiscuous mode is disabled', timeout=1)
|
receive.expect('promiscuous mode is disabled', timeout=10)
|
||||||
receive.write('rx -r 0')
|
receive.write('rx -r 0')
|
||||||
receive.expect('radio exit receive mode', timeout=1)
|
receive.expect('radio exit receive mode', timeout=10)
|
||||||
receive.write('pending -m 2')
|
receive.write('pending -m 2')
|
||||||
receive.expect('set auto pending mode as: 2', timeout=1)
|
receive.expect('set auto pending mode as: 2', timeout=10)
|
||||||
receive.write('panid 0xA116')
|
receive.write('panid 0xA116')
|
||||||
receive.expect('set panid: 0xa116', timeout=1)
|
receive.expect('set panid: 0xa116', timeout=10)
|
||||||
receive.write('shortaddr 0x939C')
|
receive.write('shortaddr 0x939C')
|
||||||
receive.expect('set shortaddr: 0x939c', timeout=1)
|
receive.expect('set shortaddr: 0x939c', timeout=10)
|
||||||
|
|
||||||
transmit.write('rx -r 0')
|
transmit.write('rx -r 0')
|
||||||
transmit.expect('radio exit receive mode', timeout=1)
|
transmit.expect('radio exit receive mode', timeout=10)
|
||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled', timeout=1)
|
transmit.expect('promiscuous mode is disabled', timeout=10)
|
||||||
transmit.write('panid 0x9B0B')
|
transmit.write('panid 0x9B0B')
|
||||||
transmit.expect('set panid: 0x9b0b', timeout=1)
|
transmit.expect('set panid: 0x9b0b', timeout=10)
|
||||||
transmit.write('shortaddr 0x04E4')
|
transmit.write('shortaddr 0x04E4')
|
||||||
transmit.expect('set shortaddr: 0x4e4', timeout=1)
|
transmit.expect('set shortaddr: 0x4e4', timeout=10)
|
||||||
|
|
||||||
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0xE4 0x04')
|
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0xE4 0x04')
|
||||||
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
||||||
add_pendingtable(receive, '0xE4 0x04')
|
add_pendingtable(receive, '0xE4 0x04')
|
||||||
|
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
transmit.write('tx 0x21 0x88 0x10 0x16 0xA1 0x9C 0x93 0x0B 0x9B 0xE4 0x04 0xb8 0xc5 0x63 0x43 0xa7 0x81 0xaf')
|
transmit.write('tx 0x21 0x88 0x10 0x16 0xA1 0x9C 0x93 0x0B 0x9B 0xE4 0x04 0xb8 0xc5 0x63 0x43 0xa7 0x81 0xaf')
|
||||||
transmit.expect('Rx ack 5 bytes', timeout=1)
|
transmit.expect('Rx ack 5 bytes', timeout=10)
|
||||||
transmit.expect('12 00 10', timeout=1)
|
transmit.expect('12 00 10', timeout=10)
|
||||||
|
|
||||||
# mode 2: frame type is data, src addr not in pending table --> FP = 0
|
# mode 2: frame type is data, src addr not in pending table --> FP = 0
|
||||||
receive.write('pending -r')
|
receive.write('pending -r')
|
||||||
receive.expect('clear the pending address table', timeout=1)
|
receive.expect('clear the pending address table', timeout=10)
|
||||||
receive.write('promisc -d')
|
receive.write('promisc -d')
|
||||||
receive.expect('promiscuous mode is disabled', timeout=1)
|
receive.expect('promiscuous mode is disabled', timeout=10)
|
||||||
receive.write('rx -r 0')
|
receive.write('rx -r 0')
|
||||||
receive.expect('radio exit receive mode', timeout=1)
|
receive.expect('radio exit receive mode', timeout=10)
|
||||||
receive.write('pending -m 2')
|
receive.write('pending -m 2')
|
||||||
receive.expect('set auto pending mode as: 2', timeout=1)
|
receive.expect('set auto pending mode as: 2', timeout=10)
|
||||||
receive.write('panid 0xE0C9')
|
receive.write('panid 0xE0C9')
|
||||||
receive.expect('set panid: 0xe0c9', timeout=1)
|
receive.expect('set panid: 0xe0c9', timeout=10)
|
||||||
receive.write('shortaddr 0x3325')
|
receive.write('shortaddr 0x3325')
|
||||||
receive.expect('set shortaddr: 0x3325', timeout=1)
|
receive.expect('set shortaddr: 0x3325', timeout=10)
|
||||||
|
|
||||||
transmit.write('rx -r 0')
|
transmit.write('rx -r 0')
|
||||||
transmit.expect('radio exit receive mode', timeout=1)
|
transmit.expect('radio exit receive mode', timeout=10)
|
||||||
transmit.write('promisc -d')
|
transmit.write('promisc -d')
|
||||||
transmit.expect('promiscuous mode is disabled', timeout=1)
|
transmit.expect('promiscuous mode is disabled', timeout=10)
|
||||||
transmit.write('panid 0x844F')
|
transmit.write('panid 0x844F')
|
||||||
transmit.expect('set panid: 0x844f', timeout=1)
|
transmit.expect('set panid: 0x844f', timeout=10)
|
||||||
transmit.write('shortaddr 0x7C4C')
|
transmit.write('shortaddr 0x7C4C')
|
||||||
transmit.expect('set shortaddr: 0x7c4c', timeout=1)
|
transmit.expect('set shortaddr: 0x7c4c', timeout=10)
|
||||||
|
|
||||||
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0x4C 0x7C')
|
wrong_table = set_mismatch_short_extern_addr_pendingtable(receive, '0x4C 0x7C')
|
||||||
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
dlt_short_extern_addr_in_pendingtable(receive, wrong_table)
|
||||||
|
|
||||||
receive.write('rx -r 1')
|
receive.write('rx -r 1')
|
||||||
receive.expect('RX Start', timeout=1)
|
receive.expect('RX Start', timeout=10)
|
||||||
transmit.write('tx 0x21 0x88 0x10 0xC9 0xE0 0x25 0x33 0x4F 0x84 0x4C 0x7C 0xa8 0xff 0x51 0x72 0xef 0xc1 0xbb')
|
transmit.write('tx 0x21 0x88 0x10 0xC9 0xE0 0x25 0x33 0x4F 0x84 0x4C 0x7C 0xa8 0xff 0x51 0x72 0xef 0xc1 0xbb')
|
||||||
transmit.expect('Rx ack 5 bytes', timeout=1)
|
transmit.expect('Rx ack 5 bytes', timeout=10)
|
||||||
transmit.expect('02 00 10', timeout=1)
|
transmit.expect('02 00 10', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -565,18 +565,18 @@ def test_based_autopending(dut: Tuple[IdfDut, IdfDut]) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_transmit_failed(dut: IdfDut) -> None:
|
def test_based_transmit_failed(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('channel -s 23')
|
transmit.write('channel -s 23')
|
||||||
transmit.expect('set channel: 23', timeout=1)
|
transmit.expect('set channel: 23', timeout=10)
|
||||||
transmit.write('cca -v -120')
|
transmit.write('cca -v -120')
|
||||||
transmit.expect('set cca threshold as: -120', timeout=1)
|
transmit.expect('set cca threshold as: -120', timeout=10)
|
||||||
transmit.write('tx -l 10 -C')
|
transmit.write('tx -l 10 -C')
|
||||||
transmit.expect('the Frame Transmission failed, Failure reason: 1', timeout=1)
|
transmit.expect('the Frame Transmission failed, Failure reason: 1', timeout=10)
|
||||||
transmit.write('tx -l 10')
|
transmit.write('tx -l 10')
|
||||||
transmit.expect('tx sfd done, Radio state: 3', timeout=1)
|
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
|
||||||
transmit.expect('Tx Done 10 bytes', timeout=1)
|
transmit.expect('Tx Done 10 bytes', timeout=10)
|
||||||
transmit.expect('00 01 02 03 04 05 06 07', timeout=1)
|
transmit.expect('00 01 02 03 04 05 06 07', timeout=10)
|
||||||
transmit.expect('08 09 00 00 00 00 00 00', timeout=1)
|
transmit.expect('08 09 00 00 00 00 00 00', timeout=10)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@ -587,16 +587,16 @@ def test_based_transmit_failed(dut: IdfDut) -> None:
|
|||||||
)
|
)
|
||||||
def test_based_initialize(dut: IdfDut) -> None:
|
def test_based_initialize(dut: IdfDut) -> None:
|
||||||
transmit = dut
|
transmit = dut
|
||||||
transmit.expect('ieee802154>', timeout=1)
|
transmit.expect('ieee802154>', timeout=10)
|
||||||
transmit.write('fheap')
|
transmit.write('fheap')
|
||||||
fst_data = transmit.expect(r'heap size: [0-9]+', timeout=1)[0].decode()
|
fst_data = transmit.expect(r'heap size: [0-9]+', timeout=10)[0].decode()
|
||||||
fst_size = re.findall(r'heap size: ([0-9]+)', fst_data)
|
fst_size = re.findall(r'heap size: ([0-9]+)', fst_data)
|
||||||
transmit.write('esp154 -e')
|
transmit.write('esp154 -e')
|
||||||
transmit.expect('initialize the IEEE 802.15.4 subsystem', timeout=1)
|
transmit.expect('initialize the IEEE 802.15.4 subsystem', timeout=10)
|
||||||
transmit.write('esp154 -d')
|
transmit.write('esp154 -d')
|
||||||
transmit.expect('deinitialize the IEEE 802.15.4 subsystem', timeout=1)
|
transmit.expect('deinitialize the IEEE 802.15.4 subsystem', timeout=10)
|
||||||
transmit.write('fheap')
|
transmit.write('fheap')
|
||||||
scd_data = transmit.expect(r'heap size: [0-9]+', timeout=1)[0].decode()
|
scd_data = transmit.expect(r'heap size: [0-9]+', timeout=10)[0].decode()
|
||||||
scd_size = re.findall(r'heap size: ([0-9]+)', scd_data)
|
scd_size = re.findall(r'heap size: ([0-9]+)', scd_data)
|
||||||
print('first heap size: ', int(fst_size[0]))
|
print('first heap size: ', int(fst_size[0]))
|
||||||
print('second heap size: ', int(scd_size[0]))
|
print('second heap size: ', int(scd_size[0]))
|
||||||
|
Loading…
Reference in New Issue
Block a user