From: Jouni Malinen Date: Tue, 27 Dec 2016 19:21:55 +0000 (+0200) Subject: tests: hostapd global control interface with unknown IFNAME= prefix X-Git-Tag: hostap_2_7~1895 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee734e9aabc254fd197ac13ad72d1bd344542679;p=thirdparty%2Fhostap.git tests: hostapd global control interface with unknown IFNAME= prefix Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index c90e2c4fc..bfd8689da 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -476,6 +476,9 @@ def test_hapd_ctrl_global(dev, apdev): res = hapd_global.request("IFNAME=" + ifname + " GET version") if "FAIL" in res: raise Exception("Could not get hostapd version for " + ifname + " via global control interface") + res = hapd_global.request("IFNAME=no-such-ifname GET version") + if "FAIL-NO-IFNAME-MATCH" not in res: + raise Exception("Invalid ifname not reported") res = hapd_global.request("INTERFACES") if "FAIL" in res: raise Exception("INTERFACES command failed")