From: Jouni Malinen Date: Sun, 21 Dec 2014 15:14:00 +0000 (+0200) Subject: tests: Do not mark proxyarp_open failed if ebtables is not available X-Git-Tag: hostap_2_4~710 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01c87519a3666d13e842a0dc5f04390f7fb84bec;p=thirdparty%2Fhostap.git tests: Do not mark proxyarp_open failed if ebtables is not available Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index a6e0d46da..804e9d02f 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -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'],