longer timeout on test_virtual2

This commit is contained in:
drowe67 2021-12-15 12:19:06 +10:30 committed by David Rowe
parent b619b341d1
commit ae80958b65
3 changed files with 4 additions and 3 deletions

View file

@ -144,6 +144,8 @@ while receive and time.time() < timeout:
if rx_bursts == N_BURSTS:
receive = False
if time.time() >= timeout:
print("TIMEOUT REACHED")
print(f"RECEIVED BURSTS: {rx_bursts} RECEIVED FRAMES: {rx_total_frames} RX_ERRORS: {rx_errors}", file=sys.stderr)

View file

@ -113,7 +113,6 @@ crc = ctypes.c_ushort(codec2.api.freedv_gen_crc16(bytes(buffer), payload_bytes_p
crc = crc.value.to_bytes(2, byteorder='big') # convert crc to 2 byte hex string
buffer += crc # append crc16 to buffer
print(f"TOTAL BURSTS: {N_BURSTS} TOTAL FRAMES_PER_BURST: {N_FRAMES_PER_BURST}", file=sys.stderr)
for i in range(1,N_BURSTS+1):

View file

@ -18,8 +18,8 @@ RX_LOG=$(mktemp)
# make sure all child processes are killed when we exit
trap 'jobs -p | xargs -r kill' EXIT
python3 test_rx.py --mode datac0 --frames 2 --bursts 5 --audiodev -2 --debug &
python3 test_rx.py --mode datac0 --frames 2 --bursts 5 --audiodev -2 --debug --timeout 20 &
rx_pid=$!
sleep 1
python3 test_tx.py --mode datac0 --frames 2 --bursts 5 --delay 500 --audiodev -2
python3 test_tx.py --mode datac0 --frames 2 --bursts 5 --delay 250 --audiodev -2
wait ${rx_pid}