auto-t: require "needs_hwsim" on hwsim tests

Running autotests with native hardware will not work on tests which
depend on the hwsim python API (since hwsim will not be running).
For these tests, it will now be required that they specify:

needs_hwsim=1

This allows the test to be skipped when running with native hardware
rather than the test failing with a python exception.
This commit is contained in:
James Prestwood 2019-04-23 11:18:26 -07:00 committed by Denis Kenzior
parent 07115e56a1
commit 19bb93a622
7 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
[SETUP]
num_radios=4
needs_hwsim=1
[HOSTAPD]
rad0=ssid1.conf

View File

@ -3,6 +3,8 @@ num_radios=3
max_test_exec_interval_sec=45
tmpfs_extra_stuff=../misc/certs:main.conf
iwd_config_dir=/tmp
tmpfs_extra_stuff=../misc/certs
needs_hwsim=1
[HOSTAPD]
rad0=ft-eap-ccmp-1.conf

View File

@ -3,6 +3,7 @@ num_radios=3
max_test_exec_interval_sec=45
iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
needs_hwsim=1
[HOSTAPD]
rad0=ft-psk-ccmp-1.conf

View File

@ -3,6 +3,7 @@ num_radios=4
max_test_exec_interval_sec=120
iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
needs_hwsim=1
[HOSTAPD]
rad0=ft-sae-1.conf

View File

@ -2,6 +2,7 @@
num_radios=3
max_test_exec_interval_sec=30
tmpfs_extra_stuff=../misc/certs
needs_hwsim=1
[HOSTAPD]
rad0=eaptls-preauth-1.conf

View File

@ -3,6 +3,7 @@ num_radios=2
max_test_exec_interval_sec=60
iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
needs_hwsim=1
[HOSTAPD]
rad0=open.conf

View File

@ -1,5 +1,6 @@
[SETUP]
num_radios=2
needs_hwsim=1
[HOSTAPD]
rad0=ssidCCMP.conf