diff mbox

[03/14] tests: Set bridge ageing in ap_wpa2_bridge_fdb() test

Message ID 1444837400-17309-4-git-send-email-ilan.peer@intel.com
State Accepted
Headers show

Commit Message

Peer, Ilan Oct. 14, 2015, 3:43 p.m. UTC
From: Avraham Stern <avraham.stern@intel.com>

Set the bridge ageing to 1 sec to make the bridge clear unused
addresses after this interval. Otherwise the test depends on
the local configuration of brctl.

type=maint

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
---
 tests/hwsim/test_ap_psk.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py
index 624c4f9..cdf67b9 100644
--- a/tests/hwsim/test_ap_psk.py
+++ b/tests/hwsim/test_ap_psk.py
@@ -357,6 +357,7 @@  def test_ap_wpa2_bridge_fdb(dev, apdev):
         cmd = subprocess.Popen(['brctl', 'showmacs', 'ap-br0'],
                                stdout=subprocess.PIPE)
         macs1 = cmd.stdout.read()
+        cmd = subprocess.call(['brctl', 'setageing', 'ap-br0', '1'])
         dev[0].request("DISCONNECT")
         dev[1].request("DISCONNECT")
         time.sleep(1)