how to setup hwsim xxx_oom case test environment

Li Zhijian zhijianx.li at intel.com
Fri Jun 2 01:50:14 PDT 2017


Hi guys

lkp-tests(https://github.com/fengguang/lkp-tests) enabled hwsim test 
recently, and currently
we have made most case pass.

but when we test xxx_oom cases, we always got failures like:
--------------------------
root at snb-black /lkp/benchmarks/hwsim/tests/hwsim# ./start.sh; 
./run-tests.py ap_open_out_of_memory; ./stop.sh
DEV: wlan0: 02:00:00:00:00:00
DEV: wlan1: 02:00:00:00:01:00
DEV: wlan2: 02:00:00:00:02:00
APDEV: wlan3
APDEV: wlan4
START ap_open_out_of_memory 1/1
Test: hostapd failing to setup interface due to allocation failure
Starting AP wlan3
Starting AP wlan4
hostapd interface started even with memory allocation failure: 
1:hostapd_alloc_bss_data
Traceback (most recent call last):
   File "./run-tests.py", line 453, in main
     t(dev, apdev)
   File "/lkp/benchmarks/hwsim/tests/hwsim/test_ap_open.py", line 246, 
in test_ap_open_out_of_memory
     hapd_out_of_mem(hapd, apdev[1], 1, "hostapd_alloc_bss_data")
   File "/lkp/benchmarks/hwsim/tests/hwsim/test_ap_open.py", line 241, 
in hapd_out_of_mem
     raise Exception("hostapd interface started even with memory 
allocation failure: %d:%s" % (count, func))
Exception: hostapd interface started even with memory allocation 
failure: 1:hostapd_alloc_bss_data
FAIL ap_open_out_of_memory 0.243406 2017-06-02 16:48:32.312603
passed 0 test case(s)
skipped 0 test case(s)
failed tests: ap_open_out_of_memory
--------------------------
it seems that something wrong at my environment.

any ideas ?

Thanks




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



More information about the Hostap mailing list