tests: Skip some test cases when MCC is enabled
authorIlan Peer <ilan.peer@intel.com>
Mon, 27 Jul 2015 19:24:32 +0000 (22:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 4 Aug 2015 16:03:21 +0000 (19:03 +0300)
Some tests assume that only a single channel is used. Skip,
such tests/checks when MCC is enabled.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
tests/hwsim/test_p2p_concurrency.py
tests/hwsim/test_p2p_messages.py

index dc63596..16be8c6 100644 (file)
@@ -20,6 +20,7 @@ from test_p2p_persistent import invite_from_cli
 from test_p2p_persistent import invite_from_go
 from test_p2p_persistent import invite
 from test_ap_ht import clear_scan_cache
+from utils import HwsimSkip
 
 def test_concurrent_autogo(dev, apdev):
     """Concurrent P2P autonomous GO"""
@@ -265,6 +266,9 @@ def test_concurrent_persistent_group(dev, apdev):
 
 def test_concurrent_invitation_channel_mismatch(dev, apdev):
     """P2P persistent group invitation and channel mismatch"""
+    if dev[0].get_mcc() > 1:
+        raise HwsimSkip("Skip due to MCC being enabled")
+
     form(dev[0], dev[1])
     dev[0].dump_monitor()
     dev[1].dump_monitor()
index 1fca571..bd88a4d 100644 (file)
@@ -894,7 +894,7 @@ def test_p2p_msg_invitation_req_to_go(dev, apdev):
         raise Exception("Not a P2P Public Action frame " + str(dialog_token))
     if p2p['subtype'] != P2P_INVITATION_RESP:
         raise Exception("Unexpected subtype %d" % p2p['subtype'])
-    if p2p['p2p_status'] != 7:
+    if p2p['p2p_status'] != 7 and dev[1].get_mcc() <= 1:
         raise Exception("Unexpected status %d" % p2p['p2p_status'])
 
 def test_p2p_msg_invitation_req_unknown(dev, apdev):