3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-26 09:32:34 +01:00

auto-t: testutil.py: pass wait into ping

This will wait for the process and cleanup ping-out file
This commit is contained in:
James Prestwood 2021-02-25 14:00:52 -08:00 committed by Denis Kenzior
parent 0e13c8d32b
commit e8389190a9

View File

@ -164,7 +164,7 @@ def test_ip_connected(tup0, tup1):
ip1, ns1 = tup1
try:
ns0.start_process(['ping', '-c', '5', '-i', '0.2', ip1], check=True)
ns1.start_process(['ping', '-c', '5', '-i', '0.2', ip0], check=True)
ns0.start_process(['ping', '-c', '5', '-i', '0.2', ip1], wait=True, check=True)
ns1.start_process(['ping', '-c', '5', '-i', '0.2', ip0], wait=True, check=True)
except:
raise Exception('Could not ping between %s and %s' % (ip0, ip1))