commit 4657bd55f56209388d284bf1ef72367d366fcdff
parent d2a3809ca82226fe6d6808ddebb390f2b5ea3cae
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 25 Aug 2021 15:17:26 -0700
auto-t: Update Process changes in a few autotests
Diffstat:
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/autotests/testNetconfig/connection_test.py b/autotests/testNetconfig/connection_test.py
@@ -59,9 +59,9 @@ class Test(unittest.TestCase):
# TODO: This could be moved into test-runner itself if other tests ever
# require this functionality (p2p, FILS, etc.). Since its simple
# enough it can stay here for now.
- ctx.start_process(['ifconfig', hapd.ifname, '192.168.1.1', 'netmask', '255.255.255.0'],
- wait=True)
- ctx.start_process(['touch', '/tmp/dhcpd.leases'], wait=True)
+ ctx.start_process(['ifconfig', hapd.ifname, '192.168.1.1',
+ 'netmask', '255.255.255.0']).wait()
+ ctx.start_process(['touch', '/tmp/dhcpd.leases']).wait()
cls.dhcpd_pid = ctx.start_process(['dhcpd', '-f', '-cf', '/tmp/dhcpd.conf',
'-lf', '/tmp/dhcpd.leases',
hapd.ifname], cleanup=remove_lease)
diff --git a/autotests/testNetconfig/static_test.py b/autotests/testNetconfig/static_test.py
@@ -86,9 +86,9 @@ class Test(unittest.TestCase):
# TODO: This could be moved into test-runner itself if other tests ever
# require this functionality (p2p, FILS, etc.). Since its simple
# enough it can stay here for now.
- ctx.start_process(['ifconfig', hapd.ifname, '192.168.1.1', 'netmask', '255.255.255.0'],
- wait=True)
- ctx.start_process(['touch', '/tmp/dhcpd.leases'], wait=True)
+ ctx.start_process(['ifconfig', hapd.ifname, '192.168.1.1',
+ 'netmask', '255.255.255.0']).wait()
+ ctx.start_process(['touch', '/tmp/dhcpd.leases']).wait()
cls.dhcpd_pid = ctx.start_process(['dhcpd', '-f', '-cf', '/tmp/dhcpd.conf',
'-lf', '/tmp/dhcpd.leases',
hapd.ifname], cleanup=remove_lease)
diff --git a/autotests/testP2P/connection_test.py b/autotests/testP2P/connection_test.py
@@ -94,7 +94,7 @@ class Test(unittest.TestCase):
self.assertEqual(wpas.p2p_group['role'], 'GO' if not go else 'client')
if not go:
- ctx.start_process(['ifconfig', peer_ifname, '192.168.1.20', 'netmask', '255.255.255.0'], wait=True)
+ ctx.start_process(['ifconfig', peer_ifname, '192.168.1.20', 'netmask', '255.255.255.0']).wait()
os.system('> /tmp/dhcp.leases')
dhcp = ctx.start_process(['dhcpd', '-f', '-cf', '/tmp/dhcpd.conf', '-lf', '/tmp/dhcp.leases', peer_ifname])
self.dhcp = dhcp
diff --git a/autotests/testSAE-roam/connection_test.py b/autotests/testSAE-roam/connection_test.py
@@ -125,11 +125,11 @@ class Test(unittest.TestCase):
HostapdCLI(config='ft-psk-3.conf') ]
ctx.start_process(['ifconfig', cls.bss_hostapd[0].ifname, 'down', 'hw', \
- 'ether', '12:00:00:00:00:01', 'up'], wait=True)
+ 'ether', '12:00:00:00:00:01', 'up']).wait()
ctx.start_process(['ifconfig', cls.bss_hostapd[1].ifname, 'down', 'hw', \
- 'ether', '12:00:00:00:00:02', 'up'], wait=True)
+ 'ether', '12:00:00:00:00:02', 'up']).wait()
ctx.start_process(['ifconfig', cls.bss_hostapd[2].ifname, 'down', 'hw', \
- 'ether', '12:00:00:00:00:03', 'up'], wait=True)
+ 'ether', '12:00:00:00:00:03', 'up']).wait()
# Set interface addresses to those expected by hostapd config files
cls.bss_hostapd[0].reload()