From: Jouni Malinen Date: Sat, 18 Jul 2015 13:01:35 +0000 (+0300) Subject: tests: FST-MANAGER TEST_REQUEST GET_FSTS_ID and ID not found X-Git-Tag: hostap_2_5~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4390030a51b85d8241e965560bb2d796af7fafd9;p=thirdparty%2Fhostap.git tests: FST-MANAGER TEST_REQUEST GET_FSTS_ID and ID not found Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/fst_module_aux.py b/tests/hwsim/fst_module_aux.py index 8b656cbd7..286fa858b 100644 --- a/tests/hwsim/fst_module_aux.py +++ b/tests/hwsim/fst_module_aux.py @@ -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): diff --git a/tests/hwsim/test_fst_module.py b/tests/hwsim/test_fst_module.py index 06f6cef71..340d723e5 100644 --- a/tests/hwsim/test_fst_module.py +++ b/tests/hwsim/test_fst_module.py @@ -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)