Browse Source

tests: Add missing test descriptions

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 10 years ago
parent
commit
146374019a

+ 1 - 0
tests/hwsim/test_ap_vht.py

@@ -83,6 +83,7 @@ def test_ap_vht80_params(dev, apdev):
         subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])
 
 def test_ap_vht_20(devs, apdevs):
+    """VHT and 20 MHz channel"""
     dev = devs[0]
     ap = apdevs[0]
     try:

+ 2 - 0
tests/hwsim/test_nfc_p2p.py

@@ -552,6 +552,7 @@ def test_nfc_p2p_static_handover_join_tagdev_client(dev):
     check_ip_addr(res)
 
 def test_nfc_p2p_go_legacy_config_token(dev):
+    """NFC config token from P2P GO to legacy WPS STA"""
     logger.info("Start autonomous GOs")
     dev[0].p2p_start_go()
     logger.info("Connect legacy WPS STA with configuration token")
@@ -570,6 +571,7 @@ def test_nfc_p2p_go_legacy_config_token(dev):
     dev[0].remove_group()
 
 def test_nfc_p2p_go_legacy_handover(dev):
+    """NFC token from legacy WPS STA to P2P GO"""
     logger.info("Start autonomous GOs")
     dev[0].p2p_start_go()
     logger.info("Connect legacy WPS STA with connection handover")

+ 1 - 0
tests/hwsim/test_p2p_channel.py

@@ -442,6 +442,7 @@ def test_no_go_freq(dev, apdev):
        dev[0].request("SET p2p_no_go_freq ")
 
 def test_go_neg_peers_force_diff_freq(dev, apdev):
+    """P2P channel selection when peers for different frequency"""
     try:
        [i_res2, r_res2] = go_neg_pbc(i_dev=dev[0], i_intent=14, i_freq=5180,
                                      r_dev=dev[1], r_intent=0, r_freq=5200)

+ 4 - 4
tests/hwsim/test_wpas_mesh.py

@@ -197,7 +197,6 @@ def wrap_wpas_mesh_test(test, dev, apdev):
 
 
 def _test_wpas_mesh_open(dev, apdev, test_connectivity):
-    """wpa_supplicant open MESH network connectivity"""
     id = dev[0].add_network()
     dev[0].set_network(id, "mode", "5")
     dev[0].set_network_quoted(id, "ssid", "wpas-mesh-open")
@@ -227,11 +226,11 @@ def _test_wpas_mesh_open(dev, apdev, test_connectivity):
 
 
 def test_wpas_mesh_open(dev, apdev):
+    """wpa_supplicant open MESH network connectivity"""
     return wrap_wpas_mesh_test(_test_wpas_mesh_open, dev, apdev)
 
 
 def _test_wpas_mesh_open_no_auto(dev, apdev, test_connectivity):
-    """wpa_supplicant open MESH network connectivity"""
     id = dev[0].add_network()
     dev[0].set_network(id, "mode", "5")
     dev[0].set_network_quoted(id, "ssid", "wpas-mesh-open")
@@ -262,11 +261,11 @@ def _test_wpas_mesh_open_no_auto(dev, apdev, test_connectivity):
 
 
 def test_wpas_mesh_open_no_auto(dev, apdev):
+    """wpa_supplicant open MESH network connectivity"""
     return wrap_wpas_mesh_test(_test_wpas_mesh_open_no_auto, dev, apdev)
 
 
 def _test_wpas_mesh_secure(dev, apdev, test_connectivity):
-    """wpa_supplicant secure MESH network connectivity"""
     dev[0].request("SET sae_groups ")
     id = dev[0].add_network()
     dev[0].set_network(id, "mode", "5")
@@ -298,11 +297,11 @@ def _test_wpas_mesh_secure(dev, apdev, test_connectivity):
 
 
 def test_wpas_mesh_secure(dev, apdev):
+    """wpa_supplicant secure MESH network connectivity"""
     return wrap_wpas_mesh_test(_test_wpas_mesh_secure, dev, apdev)
 
 
 def _test_wpas_mesh_secure_no_auto(dev, apdev, test_connectivity):
-    """wpa_supplicant secure MESH network connectivity"""
     dev[0].request("SET sae_groups ")
     id = dev[0].add_network()
     dev[0].set_network(id, "mode", "5")
@@ -335,6 +334,7 @@ def _test_wpas_mesh_secure_no_auto(dev, apdev, test_connectivity):
 
 
 def test_wpas_mesh_secure_no_auto(dev, apdev):
+    """wpa_supplicant secure MESH network connectivity"""
     return wrap_wpas_mesh_test(_test_wpas_mesh_secure_no_auto, dev, apdev)
 
 def test_wpas_mesh_ctrl(dev):