tests: Skip hapd_ctrl_test_fail if TEST_* commands not included in build
This test case was triggering false failures with hostapd build that did not include TEST_* commands. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
a9491695b3
commit
955c6641aa
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
from remotehost import remote_compatible
|
from remotehost import remote_compatible
|
||||||
import hostapd
|
import hostapd
|
||||||
import hwsim_utils
|
import hwsim_utils
|
||||||
from utils import skip_with_fips, alloc_fail, fail_test
|
from utils import skip_with_fips, alloc_fail, fail_test, HwsimSkip
|
||||||
|
|
||||||
@remote_compatible
|
@remote_compatible
|
||||||
def test_hapd_ctrl_status(dev, apdev):
|
def test_hapd_ctrl_status(dev, apdev):
|
||||||
|
@ -914,6 +914,8 @@ def test_hapd_ctrl_test_fail(dev, apdev):
|
||||||
ssid = "hapd-ctrl"
|
ssid = "hapd-ctrl"
|
||||||
params = { "ssid": ssid }
|
params = { "ssid": ssid }
|
||||||
hapd = hostapd.add_ap(apdev[0], params)
|
hapd = hostapd.add_ap(apdev[0], params)
|
||||||
|
if "OK" not in hapd.request("TEST_ALLOC_FAIL 1:unknownfunc"):
|
||||||
|
raise HwsimSkip("TEST_ALLOC_FAIL not supported")
|
||||||
if "OK" not in hapd.request("TEST_ALLOC_FAIL "):
|
if "OK" not in hapd.request("TEST_ALLOC_FAIL "):
|
||||||
raise Exception("TEST_ALLOC_FAIL clearing failed")
|
raise Exception("TEST_ALLOC_FAIL clearing failed")
|
||||||
if "OK" not in hapd.request("TEST_FAIL "):
|
if "OK" not in hapd.request("TEST_FAIL "):
|
||||||
|
|
Loading…
Reference in a new issue