From: Jouni Malinen Date: Sun, 25 Oct 2015 22:47:47 +0000 (+0200) Subject: tests: Skip radius_acct_ipaddr if kernel does not support ProxyARP X-Git-Tag: hostap_2_6~1447 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1195efd1ed1bfd638971225cb9a33ca0b3c025d;p=thirdparty%2Fhostap.git tests: Skip radius_acct_ipaddr if kernel does not support ProxyARP Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index 610225cd7..b7d4a313c 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -307,7 +307,12 @@ def _test_radius_acct_ipaddr(dev, apdev): 'proxy_arp': '1', 'ap_isolate': '1', 'bridge': 'ap-br0' } - hapd = hostapd.add_ap(apdev[0]['ifname'], params) + hapd = hostapd.add_ap(apdev[0]['ifname'], params, no_enable=True) + try: + hapd.enable() + except: + # For now, do not report failures due to missing kernel support + raise HwsimSkip("Could not start hostapd - assume proxyarp not supported in kernel version") bssid = apdev[0]['bssid'] subprocess.call(['brctl', 'setfd', 'ap-br0', '0'])