From: Jouni Malinen Date: Thu, 25 Dec 2014 13:51:49 +0000 (+0200) Subject: tests: Report missing erp support more nicely in wpas_ctrl_get_capability X-Git-Tag: hostap_2_4~656 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2a8db7785e8658ff89535bd20330d5b758ce3fb;p=thirdparty%2Fhostap.git tests: Report missing erp support more nicely in wpas_ctrl_get_capability Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 63307582f..dbb2e8db2 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -800,7 +800,7 @@ def test_wpas_ctrl_get_capability(dev): raise Exception("Unexpected GET_CAPABILITY tdls response: " + str(res)) 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)) if dev[0].get_capability("foo") is not None: