mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
eth_iperf_test: improved regex to properly evaluate IP address
This commit is contained in:
@ -24,7 +24,7 @@ except ImportError:
|
|||||||
# Only used for type annotations
|
# Only used for type annotations
|
||||||
pass
|
pass
|
||||||
|
|
||||||
NO_BANDWIDTH_LIMIT = -1 # iperf send bandwith is not limited
|
NO_BANDWIDTH_LIMIT = -1 # iperf send bandwidth is not limited
|
||||||
|
|
||||||
|
|
||||||
class IperfTestUtilityEth(IperfUtility.IperfTestUtility):
|
class IperfTestUtilityEth(IperfUtility.IperfTestUtility):
|
||||||
@ -48,7 +48,7 @@ class IperfTestUtilityEth(IperfUtility.IperfTestUtility):
|
|||||||
self.dut.write('ethernet start')
|
self.dut.write('ethernet start')
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
self.dut.write('ethernet info')
|
self.dut.write('ethernet info')
|
||||||
dut_ip = self.dut.expect(re.compile(r'ETHIP: (\d+[.]\d+[.]\d+[.]\d+)'))[0]
|
dut_ip = self.dut.expect(re.compile(r'ETHIP: (\d+[.]\d+[.]\d+[.]\d+)\r'))[0]
|
||||||
rssi = 0
|
rssi = 0
|
||||||
return dut_ip, rssi
|
return dut_ip, rssi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user