[PATCH 04/12] tests: remote: allow more hwsim tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allow tests cases that require more than
two arguments. Before we block them.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@xxxxxxxxx>
---
 tests/remote/hwsim_wrapper.py | 6 ++++--
 tests/remote/run-tests.py     | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/remote/hwsim_wrapper.py b/tests/remote/hwsim_wrapper.py
index 36df8d7a8..38f927f6e 100644
--- a/tests/remote/hwsim_wrapper.py
+++ b/tests/remote/hwsim_wrapper.py
@@ -67,13 +67,15 @@ def run_hwsim_test(devices, setup_params, refs, duts, monitors, hwsim_test):
             dut_host.dev['bssid'] = rutils.get_mac_addr(dut_host)
             apdev.append(dut_host.dev)
 
-        # run hwsim test/currently only 2 params tests
         if hwsim_test.__code__.co_argcount == 1:
             hwsim_test(dev)
         elif hwsim_test.__code__.co_argcount == 2:
             hwsim_test(dev, apdev)
         else:
-            raise Exception("more than 2 arguments required")
+            params = {}
+            params['long'] = 1
+            params['logdir'] = local_log_dir
+            hwsim_test(dev, apdev, params)
 
        # hostapd/wpa_supplicant cleanup
         for wpas in dev:
diff --git a/tests/remote/run-tests.py b/tests/remote/run-tests.py
index b68610816..8c5d02b44 100755
--- a/tests/remote/run-tests.py
+++ b/tests/remote/run-tests.py
@@ -200,7 +200,7 @@ def main():
                 t = None
                 for tt in hwsim_tests:
                     name = tt.__name__.replace('test_', '', 1)
-                    if name == test and tt.__code__.co_argcount <= 2:
+                    if name == test:
                         t = tt
                         break
                 if not t:
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux