Parcourir la source

tests: Set bridge ageing in ap_wpa2_bridge_fdb test

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.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Avraham Stern il y a 9 ans
Parent
commit
f487e306b9
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      tests/hwsim/test_ap_psk.py

+ 1 - 0
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'],
         cmd = subprocess.Popen(['brctl', 'showmacs', 'ap-br0'],
                                stdout=subprocess.PIPE)
                                stdout=subprocess.PIPE)
         macs1 = cmd.stdout.read()
         macs1 = cmd.stdout.read()
+        cmd = subprocess.call(['brctl', 'setageing', 'ap-br0', '1'])
         dev[0].request("DISCONNECT")
         dev[0].request("DISCONNECT")
         dev[1].request("DISCONNECT")
         dev[1].request("DISCONNECT")
         time.sleep(1)
         time.sleep(1)