mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +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:
parent
0e13c8d32b
commit
e8389190a9
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user