Parcourir la source

tests: Additional HS20_ICON_REQUEST coverage

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 10 ans
Parent
commit
44c41cdf47
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      tests/hwsim/test_ap_hs20.py

+ 2 - 0
tests/hwsim/test_ap_hs20.py

@@ -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