From: Jouni Malinen Date: Thu, 28 Nov 2013 13:50:47 +0000 (+0200) Subject: tests: Reset hostapd state with FLUSH between test cases X-Git-Tag: hostap_2_1~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8949f5f8ffdf5c9bbaf8af43728974238503618;p=thirdparty%2Fhostap.git tests: Reset hostapd state with FLUSH between test cases This is similar to the FLUSH command for wpa_supplicant. Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py index b282a9b74..7b6aad567 100644 --- a/tests/hwsim/hostapd.py +++ b/tests/hwsim/hostapd.py @@ -46,6 +46,9 @@ class HostapdGlobal: def relog(self): self.ctrl.request("RELOG") + def flush(self): + self.ctrl.request("FLUSH") + class Hostapd: def __init__(self, ifname): diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index b95368849..4ae987f86 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -42,6 +42,7 @@ def reset_devs(dev, apdev): try: hapd = HostapdGlobal() + hapd.flush() hapd.remove('wlan3-3') hapd.remove('wlan3-2') for ap in apdev: