Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH 2/4] auto-t: fix testConnectAutoconnect
@ 2021-10-20 20:53 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2021-10-20 20:53 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]

There was no open ssid provisioning file, which was fine as the
first test should have created one. But to be safe, include one
explicitly and use the proper setUp/tearDown functions.
---
 autotests/testConnectAutoconnect/open_network_test.py | 4 ++++
 autotests/testConnectAutoconnect/ssidOpen.open        | 1 +
 2 files changed, 5 insertions(+)
 create mode 100644 autotests/testConnectAutoconnect/ssidOpen.open

diff --git a/autotests/testConnectAutoconnect/open_network_test.py b/autotests/testConnectAutoconnect/open_network_test.py
index 187f2342..0af66923 100644
--- a/autotests/testConnectAutoconnect/open_network_test.py
+++ b/autotests/testConnectAutoconnect/open_network_test.py
@@ -24,6 +24,10 @@ class TestOpenNetwork(unittest.TestCase):
         tca.validate('ssidOpen', False)
         tca.validate('ssidOpen', True)
 
+    def setUp(self):
+        IWD.copy_to_storage('ssidOpen.open')
+
+    def tearDown(self):
         IWD.clear_storage()
 
 if __name__ == '__main__':
diff --git a/autotests/testConnectAutoconnect/ssidOpen.open b/autotests/testConnectAutoconnect/ssidOpen.open
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/autotests/testConnectAutoconnect/ssidOpen.open
@@ -0,0 +1 @@
+
-- 
2.31.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-20 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-20 20:53 [PATCH 2/4] auto-t: fix testConnectAutoconnect James Prestwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox