From 4390030a51b85d8241e965560bb2d796af7fafd9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 18 Jul 2015 16:01:35 +0300 Subject: [PATCH] tests: FST-MANAGER TEST_REQUEST GET_FSTS_ID and ID not found Signed-off-by: Jouni Malinen --- tests/hwsim/fst_module_aux.py | 2 +- tests/hwsim/test_fst_module.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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)