]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_wps_reg_config_tkip failure log more helpful
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Nov 2014 18:33:35 +0000 (20:33 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Nov 2014 18:33:35 +0000 (20:33 +0200)
The "Not fully connected" report did not clearly identify what went
wrong, so make this more verbose in hope of being able to determine what
happened should this test case fail again.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_wps.py

index 5c8aeed06b396db58f266f62b682da8c9c547232..156d804d7a6436f24a4083a55db098635e1ebdfe 100644 (file)
@@ -619,7 +619,7 @@ def test_ap_wps_reg_config_tkip(dev, apdev):
     dev[0].connect_network(id)
     status = dev[0].get_status()
     if status['wpa_state'] != 'COMPLETED' or status['bssid'] != apdev[0]['bssid']:
-        raise Exception("Not fully connected")
+        raise Exception("Not fully connected: wpa_state={} bssid={}".format(status['wpa_state'], status['bssid']))
     if status['ssid'] != new_ssid:
         raise Exception("Unexpected SSID")
     if status['pairwise_cipher'] != 'CCMP' or status['group_cipher'] != 'TKIP':