mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
tests: Fix error message for ap_open_out_of_memory
If hostapd AP started unexpectedly, this test case would fail with NameError due to incorrect variable name being used to construct the exception text. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
1a4f18d8f4
commit
6f2252614c
@ -196,7 +196,7 @@ def hapd_out_of_mem(hapd, apdev, count, func):
|
||||
except:
|
||||
pass
|
||||
if started:
|
||||
raise Exception("hostapd interface started even with memory allocation failure: " + arg)
|
||||
raise Exception("hostapd interface started even with memory allocation failure: %d:%s" % (count, func))
|
||||
|
||||
def test_ap_open_out_of_memory(dev, apdev):
|
||||
"""hostapd failing to setup interface due to allocation failure"""
|
||||
|
Loading…
Reference in New Issue
Block a user