tests: Mark proxyarp_open as skip if traffic test fails
authorJouni Malinen <j@w1.fi>
Sat, 17 Jan 2015 15:15:42 +0000 (17:15 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 17 Jan 2015 15:15:42 +0000 (17:15 +0200)
This step requires kernel changes that are not yet in upstream Linux
tree, so mark this as skip rather than failure for now.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index 1a4e438..620551c 100644 (file)
@@ -3112,7 +3112,11 @@ def _test_proxyarp_open(dev, apdev, params):
     send_na(hapd, hapd_bssid=bssid, target="aaaa:bbbb:cccc:aeae::4",
             ip_src="aaaa:bbbb:cccc:aeae::4", ip_dst="ff02::1")
 
-    hwsim_utils.test_connectivity_iface(dev[0], hapd, "ap-br0")
+    try:
+        hwsim_utils.test_connectivity_iface(dev[0], hapd, "ap-br0")
+    except Exception, e:
+        logger.info("test_connectibity_iface failed: " + str(e))
+        raise HwsimSkip("Assume kernel did not have the required patches for proxyarp")
     hwsim_utils.test_connectivity_iface(dev[1], hapd, "ap-br0")
     hwsim_utils.test_connectivity(dev[0], dev[1])