aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-25 13:30:42 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-29 13:49:05 (GMT)
commit8c6f6ac100e183245c903696ffc6a98e380db2e5 (patch)
tree3dc600e2e07b65a1e0e861b70342a5eb367ed009 /tests
parent752d58c775e8856ae98327c188e2e66181f67684 (diff)
downloadhostap-8c6f6ac100e183245c903696ffc6a98e380db2e5.zip
hostap-8c6f6ac100e183245c903696ffc6a98e380db2e5.tar.gz
hostap-8c6f6ac100e183245c903696ffc6a98e380db2e5.tar.bz2
tests: Allow DFS test cases to be skipped
Some of the newer dfs_radar* test cases did not allow hostapd startup to fail. Since these require relatively recent kernel support, mark the test cases with skip rather than fail based on that step failing. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_dfs.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/hwsim/test_dfs.py b/tests/hwsim/test_dfs.py
index 84c2815..08ded31 100644
--- a/tests/hwsim/test_dfs.py
+++ b/tests/hwsim/test_dfs.py
@@ -140,7 +140,7 @@ def test_dfs_radar(dev, apdev):
"""DFS CAC functionality with radar detected"""
try:
hapd2 = None
- hapd = start_dfs_ap(apdev[0])
+ hapd = start_dfs_ap(apdev[0], allow_failure=True)
if hapd is None:
if not os.path.exists("dfs"):
return "skip"
@@ -230,7 +230,7 @@ def test_dfs_radar_on_non_dfs_channel(dev, apdev):
def test_dfs_radar_chanlist(dev, apdev):
"""DFS chanlist when radar is detected"""
try:
- hapd = start_dfs_ap(apdev[0], chanlist="40 44")
+ hapd = start_dfs_ap(apdev[0], chanlist="40 44", allow_failure=True)
if hapd is None:
if not os.path.exists("dfs"):
return "skip"
@@ -267,7 +267,8 @@ def test_dfs_radar_chanlist(dev, apdev):
def test_dfs_radar_chanlist_vht80(dev, apdev):
"""DFS chanlist when radar is detected and VHT80 configured"""
try:
- hapd = start_dfs_ap(apdev[0], chanlist="36", ht40=True, vht80=True)
+ hapd = start_dfs_ap(apdev[0], chanlist="36", ht40=True, vht80=True,
+ allow_failure=True)
if hapd is None:
if not os.path.exists("dfs"):
return "skip"
@@ -307,7 +308,8 @@ def test_dfs_radar_chanlist_vht80(dev, apdev):
def test_dfs_radar_chanlist_vht20(dev, apdev):
"""DFS chanlist when radar is detected and VHT40 configured"""
try:
- hapd = start_dfs_ap(apdev[0], chanlist="36", vht20=True)
+ hapd = start_dfs_ap(apdev[0], chanlist="36", vht20=True,
+ allow_failure=True)
if hapd is None:
if not os.path.exists("dfs"):
return "skip"
@@ -344,7 +346,8 @@ def test_dfs_radar_chanlist_vht20(dev, apdev):
def test_dfs_radar_no_ht(dev, apdev):
"""DFS chanlist when radar is detected and no HT configured"""
try:
- hapd = start_dfs_ap(apdev[0], chanlist="36", ht=False)
+ hapd = start_dfs_ap(apdev[0], chanlist="36", ht=False,
+ allow_failure=True)
if hapd is None:
if not os.path.exists("dfs"):
return "skip"
@@ -381,7 +384,8 @@ def test_dfs_radar_no_ht(dev, apdev):
def test_dfs_radar_ht40minus(dev, apdev):
"""DFS chanlist when radar is detected and HT40- configured"""
try:
- hapd = start_dfs_ap(apdev[0], chanlist="36", ht40minus=True)
+ hapd = start_dfs_ap(apdev[0], chanlist="36", ht40minus=True,
+ allow_failure=True)
if hapd is None:
if not os.path.exists("dfs"):
return "skip"