From c0183847d91aecb653df3586790546d79b802e51 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 16 Jul 2015 12:46:01 +0300 Subject: [PATCH] tests: Silence unnecessary get_driver_status() prints Commit 53606b105c6df3c2f3a154b055ac142d5c380251 ('tests: Wait for scan to complete on all interfaces in reset()') added option of passing ifname to get_driver_status(). This could result in FAIL-NO-IFNAME-MATCH returns that get printed out in "Ignore unexpected status-driver line" messages if the interface is not found. Check for this case to avoid that unnecessary print. Signed-off-by: Jouni Malinen --- tests/hwsim/wpasupplicant.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index d097645bc..e99e91ea2 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -362,6 +362,8 @@ class WpaSupplicant: res = self.request("STATUS-DRIVER") else: res = self.global_request("IFNAME=%s STATUS-DRIVER" % ifname) + if res.startswith("FAIL"): + return dict() lines = res.splitlines() vals = dict() for l in lines: