]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix error message for ap_open_out_of_memory
authorJouni Malinen <j@w1.fi>
Fri, 27 Nov 2015 22:23:35 +0000 (00:23 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Nov 2015 22:23:35 +0000 (00:23 +0200)
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>
tests/hwsim/test_ap_open.py

index 814242684a0889dd47eb38c0deca2b7130c66105..fde813b965f73aee9cf5d6c2577b692fb9cfb2a5 100644 (file)
@@ -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"""