diff --git a/autotests/testClientNonInteractive/connect_command_test.py b/autotests/testClientNonInteractive/connect_command_test.py index 10e16555..494f05d2 100644 --- a/autotests/testClientNonInteractive/connect_command_test.py +++ b/autotests/testClientNonInteractive/connect_command_test.py @@ -36,6 +36,11 @@ class Test(unittest.TestCase): 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', 'station', device.name, 'connect', ssid])