From b3ccabea9e60c6a3dae037b85d69dd618004899c Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Thu, 19 Sep 2019 10:16:32 -0700 Subject: [PATCH] auto-t: Exercise '--dontask' iwctl command-line option --- autotests/testClientNonInteractive/connect_command_test.py | 5 +++++ 1 file changed, 5 insertions(+) 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])