mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Use cmd_execute() for iw connect command
The hwsim tests used to execute shell commands in the tests using the subprocess python module. Use the cmd_execute() general function for executing "iw connect ..." commands so that this would also work on remote setups. Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
This commit is contained in:
parent
10e09d8316
commit
12129dda8e
@ -160,7 +160,7 @@ def test_ap_open_unexpected_assoc_event(dev, apdev):
|
||||
dev[0].wait_disconnected(timeout=15)
|
||||
dev[0].dump_monitor()
|
||||
# This will be accepted due to matching network
|
||||
subprocess.call(['iw', 'dev', dev[0].ifname, 'connect', 'open', "2412",
|
||||
dev[0].cmd_execute(['iw', 'dev', dev[0].ifname, 'connect', 'open', "2412",
|
||||
apdev[0]['bssid']])
|
||||
dev[0].wait_connected(timeout=15)
|
||||
dev[0].dump_monitor()
|
||||
@ -169,7 +169,7 @@ def test_ap_open_unexpected_assoc_event(dev, apdev):
|
||||
dev[0].wait_disconnected(timeout=5)
|
||||
dev[0].dump_monitor()
|
||||
# This will result in disconnection due to no matching network
|
||||
subprocess.call(['iw', 'dev', dev[0].ifname, 'connect', 'open', "2412",
|
||||
dev[0].cmd_execute(['iw', 'dev', dev[0].ifname, 'connect', 'open', "2412",
|
||||
apdev[0]['bssid']])
|
||||
dev[0].wait_disconnected(timeout=15)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user