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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-25 15:29:47 +02:00
parent 6532a84ed3
commit 752d58c775

View file

@ -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)