tests: Report missing erp support more nicely in wpas_ctrl_get_capability

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-25 15:51:49 +02:00
parent 84512f8c9b
commit e2a8db7785

View file

@ -800,7 +800,7 @@ def test_wpas_ctrl_get_capability(dev):
raise Exception("Unexpected GET_CAPABILITY tdls response: " + str(res)) raise Exception("Unexpected GET_CAPABILITY tdls response: " + str(res))
res = dev[0].get_capability("erp") res = dev[0].get_capability("erp")
if "ERP" not in res[0]: if res is None or "ERP" not in res[0]:
raise Exception("Unexpected GET_CAPABILITY erp response: " + str(res)) raise Exception("Unexpected GET_CAPABILITY erp response: " + str(res))
if dev[0].get_capability("foo") is not None: if dev[0].get_capability("foo") is not None: