]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: FST-MANAGER TEST_REQUEST GET_FSTS_ID and ID not found
authorJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 13:01:35 +0000 (16:01 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 14:23:55 +0000 (17:23 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/fst_module_aux.py
tests/hwsim/test_fst_module.py

index 8b656cbd73d86a1420b7ba0fa368a9643f2dc409..286fa858bec5d043ecaa3663e25bbfde295d4cbf 100644 (file)
@@ -406,7 +406,7 @@ class FstDevice:
     def get_fsts_id_by_sid(self, sid):
         s = self.grequest("FST-MANAGER TEST_REQUEST GET_FSTS_ID " + sid)
         if s == ' ' or s.startswith('FAIL'):
-            raise Exception("Cannot get fsts_id for sid == " % sid)
+            raise Exception("Cannot get fsts_id for sid == %s" % sid)
         return int(s)
 
     def wait_for_iface_event(self, timeout):
index 06f6cef71fcfac30b78b99fa6af23d0972ff9ce8..340d723e56b4b3d3e614f6f4ed8ce16c1fb65542 100644 (file)
@@ -1479,6 +1479,12 @@ def test_fst_ap_ctrl_iface(dev, apdev, test_params):
         except Exception, e:
             if not str(e).startswith("Cannot attach"):
                 raise
+
+        try:
+            ap1.get_fsts_id_by_sid("123")
+        except Exception, e:
+            if not str(e).startswith("Cannot get fsts_id for sid"):
+                raise
     finally:
         fst_module_aux.disconnect_two_ap_sta_pairs(ap1, ap2, sta1, sta2)
         fst_module_aux.stop_two_ap_sta_pairs(ap1, ap2, sta1, sta2)