]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Do not mark proxyarp_open failed if ebtables is not available
authorJouni Malinen <j@w1.fi>
Sun, 21 Dec 2014 15:14:00 +0000 (17:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Dec 2014 15:14:00 +0000 (17:14 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index a6e0d46da623c1cb1750606cba1cc0100dd4baf8..804e9d02f5f87c03df5ad20e4e20e748766a3435 100644 (file)
@@ -3050,8 +3050,11 @@ def test_proxyarp_open(dev, apdev, params):
     try:
         res = _test_proxyarp_open(dev, apdev, params)
     finally:
-        subprocess.call(['ebtables', '-F', 'FORWARD'])
-        subprocess.call(['ebtables', '-F', 'OUTPUT'])
+        try:
+            subprocess.call(['ebtables', '-F', 'FORWARD'])
+            subprocess.call(['ebtables', '-F', 'OUTPUT'])
+        except:
+            pass
         subprocess.call(['ip', 'link', 'set', 'dev', 'ap-br0', 'down'],
                         stderr=open('/dev/null', 'w'))
         subprocess.call(['brctl', 'delbr', 'ap-br0'],