Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH 2/4] auto-t: fix testConnectAutoconnect
Date: Wed, 20 Oct 2021 13:53:29 -0700	[thread overview]
Message-ID: <20211020205331.734405-2-prestwoj@gmail.com> (raw)
In-Reply-To: 20211020205331.734405-1-prestwoj@gmail.com

[-- 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

                 reply	other threads:[~2021-10-20 20:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211020205331.734405-2-prestwoj@gmail.com \
    --to=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox