From e8389190a9e44a3ef38c224a4a532ebd110ff5a0 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 25 Feb 2021 14:00:52 -0800 Subject: [PATCH] auto-t: testutil.py: pass wait into ping This will wait for the process and cleanup ping-out file --- autotests/util/testutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/util/testutil.py b/autotests/util/testutil.py index f50223b1..c649b387 100644 --- 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))