tests: FST-MANAGER TEST_REQUEST GET_FSTS_ID and ID not found

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-07-18 16:01:35 +03:00
parent e84297a8e6
commit 4390030a51
2 changed files with 7 additions and 1 deletions

View 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):

View 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)