From: Jouni Malinen Date: Thu, 25 Dec 2014 13:29:47 +0000 (+0200) Subject: tests: Allow SMPS test case to be skipped X-Git-Tag: hostap_2_4~659 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=752d58c775e8856ae98327c188e2e66181f67684;p=thirdparty%2Fhostap.git tests: Allow SMPS test case to be skipped ap_ht_smps needs relatively recern kernel support, so allow it to be skipped rather than claimed as failure, in case hostapd startup fails. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_ht.py b/tests/hwsim/test_ap_ht.py index 3f8b7b0f3..539413adf 100644 --- a/tests/hwsim/test_ap_ht.py +++ b/tests/hwsim/test_ap_ht.py @@ -766,7 +766,11 @@ def test_ap_ht40_csa3(dev, apdev): def test_ap_ht_smps(dev, apdev): """SMPS AP configuration options""" params = { "ssid": "ht1", "ht_capab": "[SMPS-STATIC]" } - hapd = hostapd.add_ap(apdev[0]['ifname'], params) + try: + hapd = hostapd.add_ap(apdev[0]['ifname'], params) + except: + logger.info("Assume mac80211_hwsim was not recent enough to support SMPS") + return "skip" params = { "ssid": "ht2", "ht_capab": "[SMPS-DYNAMIC]" } hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)