Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.01.org
Subject: [PATCH 3/4] auto-t: fix testFT-PSK-roam
Date: Mon, 14 Sep 2020 14:02:32 -0700	[thread overview]
Message-ID: <20200914210233.428835-3-prestwoj@gmail.com> (raw)
In-Reply-To: <20200914210233.428835-1-prestwoj@gmail.com>

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

Some cleanup code got removed by mistake which cleared out any
hwsim rules before the next subtest. Without this the second test
would end up getting erroneous signal strength numbers in the scan
results causing a failure.
---
 autotests/testFT-PSK-roam/connection_test.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/autotests/testFT-PSK-roam/connection_test.py b/autotests/testFT-PSK-roam/connection_test.py
index ccbaccb8..6ad7af4e 100644
--- a/autotests/testFT-PSK-roam/connection_test.py
+++ b/autotests/testFT-PSK-roam/connection_test.py
@@ -187,6 +187,11 @@ class Test(unittest.TestCase):
         os.system('ifconfig "' + self.bss_hostapd[0].ifname + '" up')
         os.system('ifconfig "' + self.bss_hostapd[1].ifname + '" up')
 
+        hwsim = Hwsim()
+
+        for rule in list(hwsim.rules.keys()):
+            del hwsim.rules[rule]
+
     @classmethod
     def setUpClass(cls):
         hwsim = Hwsim()
-- 
2.26.2

  parent reply	other threads:[~2020-09-14 21:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14 21:02 [PATCH 1/4] station: print which BSS is being connected to James Prestwood
2020-09-14 21:02 ` [PATCH 2/4] auto-t: don't clear out rules from hwsim object James Prestwood
2020-09-14 21:02 ` James Prestwood [this message]
2020-09-14 21:02 ` [PATCH 4/4] auto-t: replace waiting for network with device James Prestwood
2020-09-14 21:03 ` [PATCH 1/4] station: print which BSS is being connected to Denis Kenzior

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=20200914210233.428835-3-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=iwd@lists.01.org \
    /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