]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hostapd global control interface with unknown IFNAME= prefix
authorJouni Malinen <j@w1.fi>
Tue, 27 Dec 2016 19:21:55 +0000 (21:21 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 28 Dec 2016 12:31:43 +0000 (14:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_hapd_ctrl.py

index c90e2c4fcb3d5476629f6b7b682b8a4efb27e3ec..bfd8689dac55d0503a0a4333d6c2d99c81ea49e0 100644 (file)
@@ -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")