3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

auto-t: Exercise '--dontask' iwctl command-line option

This commit is contained in:
Tim Kourt 2019-09-19 10:16:32 -07:00 committed by Denis Kenzior
parent 19529a4d3a
commit b3ccabea9e

View File

@ -36,6 +36,11 @@ class Test(unittest.TestCase):
device = wd.list_devices(1)[0] device = wd.list_devices(1)[0]
# Use --dontaks cmd-line option
with self.assertRaises(subprocess.CalledProcessError):
subprocess.check_call(['iwctl', '-d', 'station',
device.name, 'connect', ssid])
subprocess.check_call(['iwctl', '-P', 'passphrase', subprocess.check_call(['iwctl', '-P', 'passphrase',
'station', device.name, 'connect', ssid]) 'station', device.name, 'connect', ssid])