Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.01.org
Subject: [PATCH 2/3] auto-t: testSAQuery remove ungraceful restart
Date: Mon, 23 Aug 2021 11:32:20 -0700	[thread overview]
Message-ID: <20210823183221.558154-2-prestwoj@gmail.com> (raw)
In-Reply-To: <20210823183221.558154-1-prestwoj@gmail.com>

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

Instead the same effect can be seen by just ifdown/ifup the interface.
---
 autotests/testSAQuery/connection_test.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/autotests/testSAQuery/connection_test.py b/autotests/testSAQuery/connection_test.py
index 3a66d118..03280d0e 100644
--- a/autotests/testSAQuery/connection_test.py
+++ b/autotests/testSAQuery/connection_test.py
@@ -38,7 +38,10 @@ class Test(unittest.TestCase):
         # Make AP go down ungracefully, when hostapd comes back up it should
         # send an unprotected disassociate frame so the client will re-auth.
         # This will kick off the SA Query procedure
-        hostapd.ungraceful_restart()
+        hostapd.interface.set_interface_state('down')
+        hostapd.interface.set_interface_state('up')
+
+        hostapd.wait_for_event('INTERFACE-ENABLED')
 
         condition = 'not obj.connected'
         wd.wait_for_object_condition(ordered_network.network_object, condition)
-- 
2.31.1

  reply	other threads:[~2021-08-23 18:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-23 18:32 [PATCH 1/3] auto-t: hwsim.py: convert addresses to 42:* format James Prestwood
2021-08-23 18:32 ` James Prestwood [this message]
2021-08-23 18:32 ` [PATCH 3/3] auto-t: hostapd.py: remove ungraceful_restart James Prestwood
2021-08-25 13:52 ` [PATCH 1/3] auto-t: hwsim.py: convert addresses to 42:* format 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=20210823183221.558154-2-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