tests: Get rid of the unnecessary add_tests() functions
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b61e418c35
commit
894541ea9c
6 changed files with 9 additions and 37 deletions
|
@ -57,14 +57,16 @@ def main():
|
|||
if m:
|
||||
print "Import test cases from " + t
|
||||
mod = __import__(m.group(1))
|
||||
mod.add_tests(tests)
|
||||
for s in dir(mod):
|
||||
if s.startswith("test_"):
|
||||
func = mod.__dict__.get(s)
|
||||
tests.append(func)
|
||||
|
||||
passed = []
|
||||
failed = []
|
||||
|
||||
for t in tests:
|
||||
if test_filter:
|
||||
#if test_filter not in t.__name__:
|
||||
if test_filter != t.__name__:
|
||||
continue
|
||||
reset_devs(dev, hapd_ifaces)
|
||||
|
|
|
@ -49,14 +49,17 @@ def main():
|
|||
if m:
|
||||
print "Import test cases from " + t
|
||||
mod = __import__(m.group(1))
|
||||
mod.add_tests(tests)
|
||||
for s in dir(mod):
|
||||
if s.startswith("test_"):
|
||||
func = mod.__dict__.get(s)
|
||||
tests.append(func)
|
||||
|
||||
passed = []
|
||||
failed = []
|
||||
|
||||
for t in tests:
|
||||
if test_filter:
|
||||
if test_filter not in t.__name__:
|
||||
if test_filter != t.__name__:
|
||||
continue
|
||||
for d in dev:
|
||||
d.reset()
|
||||
|
|
|
@ -261,18 +261,3 @@ def test_ap_open_tdls(dev):
|
|||
setup_tdls(dev[0], dev[1], bssid)
|
||||
teardown_tdls(dev[0], dev[1], bssid)
|
||||
setup_tdls(dev[1], dev[0], bssid)
|
||||
|
||||
def add_tests(tests):
|
||||
tests.append(test_ap_wpa2_tdls)
|
||||
tests.append(test_ap_wpa2_tdls_concurrent_init)
|
||||
tests.append(test_ap_wpa2_tdls_concurrent_init2)
|
||||
tests.append(test_ap_wpa2_tdls_decline_resp)
|
||||
tests.append(test_ap_wpa2_tdls_long_lifetime)
|
||||
tests.append(test_ap_wpa2_tdls_long_frame)
|
||||
tests.append(test_ap_wpa2_tdls_reneg)
|
||||
tests.append(test_ap_wpa2_tdls_wrong_lifetime_resp)
|
||||
tests.append(test_ap_wpa2_tdls_diff_rsnie)
|
||||
tests.append(test_ap_wpa_tdls)
|
||||
tests.append(test_ap_wpa_mixed_tdls)
|
||||
tests.append(test_ap_wep_tdls)
|
||||
tests.append(test_ap_open_tdls)
|
||||
|
|
|
@ -107,8 +107,3 @@ def test_autogo_tdls(dev):
|
|||
dev[2].remove_group()
|
||||
dev[1].remove_group()
|
||||
dev[0].remove_group()
|
||||
|
||||
def add_tests(tests):
|
||||
tests.append(test_autogo)
|
||||
tests.append(test_autogo_2cli)
|
||||
tests.append(test_autogo_tdls)
|
||||
|
|
|
@ -70,7 +70,3 @@ def test_discovery(dev):
|
|||
|
||||
dev[0].p2p_stop_find
|
||||
dev[1].p2p_stop_find
|
||||
|
||||
|
||||
def add_tests(tests):
|
||||
tests.append(test_discovery)
|
||||
|
|
|
@ -158,12 +158,3 @@ def test_both_go_neg_display(dev):
|
|||
def test_both_go_neg_enter(dev):
|
||||
"""P2P GO Negotiation with both devices trying to enter PIN"""
|
||||
go_neg_pin_authorized(i_dev=dev[0], r_dev=dev[1], expect_failure=True, i_go_neg_status=10, i_method='enter', r_method='enter')
|
||||
|
||||
def add_tests(tests):
|
||||
tests.append(test_grpform)
|
||||
tests.append(test_grpform2)
|
||||
tests.append(test_grpform3)
|
||||
tests.append(test_grpform_pbc)
|
||||
tests.append(test_both_go_intent_15)
|
||||
tests.append(test_both_go_neg_display)
|
||||
tests.append(test_both_go_neg_enter)
|
||||
|
|
Loading…
Reference in a new issue