]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Additional HS20_ICON_REQUEST coverage
authorJouni Malinen <j@w1.fi>
Thu, 11 Dec 2014 14:14:24 +0000 (16:14 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 11 Dec 2014 14:14:24 +0000 (16:14 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index b7338eea3f6a135e5aa73095c34648285d0a76a2..260570a1314985b76a65518d54cad2dee883479d 100644 (file)
@@ -2003,6 +2003,8 @@ def test_ap_hs20_fetch_osu(dev, apdev):
         dev[1].scan_for_bss(bssid, freq="2412")
         dev[0].request("SET osu_dir " + dir)
         dev[0].request("FETCH_OSU")
+        if "FAIL" not in dev[1].request("HS20_ICON_REQUEST foo w1fi_logo"):
+            raise Exception("Invalid HS20_ICON_REQUEST accepted")
         if "OK" not in dev[1].request("HS20_ICON_REQUEST " + bssid + " w1fi_logo"):
             raise Exception("HS20_ICON_REQUEST failed")
         icons = 0