commit e8389190a9e44a3ef38c224a4a532ebd110ff5a0
parent 0e13c8d32b34e31b0433ecac2feac6e5ac254357
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 25 Feb 2021 14:00:52 -0800
auto-t: testutil.py: pass wait into ping
This will wait for the process and cleanup ping-out file
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/autotests/util/testutil.py b/autotests/util/testutil.py
@@ -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))