ci iperf: fixed condition for waiting to iperf server is up in DUT

This commit is contained in:
Ondrej Kosta 2022-08-16 09:21:01 +02:00
parent d7580183a6
commit 74091777e6

View File

@ -336,7 +336,7 @@ class IperfTestUtility(object):
self.dut.write('iperf -s -i 1 -t {}'.format(TEST_TIME)) self.dut.write('iperf -s -i 1 -t {}'.format(TEST_TIME))
# wait until DUT TCP server created # wait until DUT TCP server created
try: try:
self.dut.expect('iperf tcp server create successfully', timeout=1) self.dut.expect('iperf: Socket created', timeout=5)
except DUT.ExpectTimeout: except DUT.ExpectTimeout:
# compatible with old iperf example binary # compatible with old iperf example binary
Utility.console_log('create iperf tcp server fail') Utility.console_log('create iperf tcp server fail')
@ -356,7 +356,7 @@ class IperfTestUtility(object):
self.dut.write('iperf -s -u -i 1 -t {}'.format(TEST_TIME)) self.dut.write('iperf -s -u -i 1 -t {}'.format(TEST_TIME))
# wait until DUT TCP server created # wait until DUT TCP server created
try: try:
self.dut.expect('iperf udp server create successfully', timeout=1) self.dut.expect('iperf: Socket bound', timeout=5)
except DUT.ExpectTimeout: except DUT.ExpectTimeout:
# compatible with old iperf example binary # compatible with old iperf example binary
Utility.console_log('create iperf udp server fail') Utility.console_log('create iperf udp server fail')