From 6f2252614cd590f50ea458d21028e89e2abbe6e7 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 28 Nov 2015 00:23:35 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_ap_open.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py index 814242684..fde813b96 100644 --- a/tests/hwsim/test_ap_open.py +++ b/tests/hwsim/test_ap_open.py @@ -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"""