tests: Add general filter for remote tests execution
Add a new function decorator for the test functions so that they can be marked as remote compatible tests. Add a general filter to the remote tests execution script to only execute tests that are remote compatible. Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
This commit is contained in:
parent
bb04a9a9a3
commit
5aa751eaf3
2 changed files with 8 additions and 0 deletions
|
@ -191,6 +191,10 @@ def main():
|
|||
# setup hwsim_test we should run
|
||||
if requested_hwsim_tests[0] == "all":
|
||||
hwsim_tests_to_run = hwsim_tests
|
||||
elif requested_hwsim_tests[0] == "remote":
|
||||
hwsim_tests_to_run = [t for t in hwsim_tests
|
||||
if hasattr(t, "remote_compatible") and
|
||||
t.remote_compatible]
|
||||
else:
|
||||
for test in requested_hwsim_tests:
|
||||
t = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue