mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
add time delay after create tcp server on PC
This commit is contained in:
@@ -301,6 +301,7 @@ class IperfTestUtility(object):
|
|||||||
process = subprocess.Popen(['iperf', '-s', '-B', self.pc_nic_ip,
|
process = subprocess.Popen(['iperf', '-s', '-B', self.pc_nic_ip,
|
||||||
'-t', str(TEST_TIME), '-i', '1', '-f', 'm'],
|
'-t', str(TEST_TIME), '-i', '1', '-f', 'm'],
|
||||||
stdout=f, stderr=f)
|
stdout=f, stderr=f)
|
||||||
|
time.sleep(1)
|
||||||
if bw_limit > 0:
|
if bw_limit > 0:
|
||||||
self.dut.write('iperf -c {} -i 1 -t {} -b {}'.format(self.pc_nic_ip, TEST_TIME, bw_limit))
|
self.dut.write('iperf -c {} -i 1 -t {} -b {}'.format(self.pc_nic_ip, TEST_TIME, bw_limit))
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user