From d85b1aa6de5bab20b741d14b12ab9dac083a7aa0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 8 Jan 2017 16:52:56 +0200 Subject: [PATCH] tests: More GET wifi_display coverage Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 761e90188..952dd52eb 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -619,6 +619,22 @@ def test_wpas_ctrl_get(dev): if "FAIL" not in dev[0].request("GET foo"): raise Exception("Unexpected success on get command") + dev[0].set("wifi_display", "0") + if dev[0].request("GET wifi_display") != '0': + raise Exception("Unexpected wifi_display value") + dev[0].set("wifi_display", "1") + if dev[0].request("GET wifi_display") != '1': + raise Exception("Unexpected wifi_display value") + dev[0].request("P2P_SET disabled 1") + if dev[0].request("GET wifi_display") != '0': + raise Exception("Unexpected wifi_display value (P2P disabled)") + dev[0].request("P2P_SET disabled 0") + if dev[0].request("GET wifi_display") != '1': + raise Exception("Unexpected wifi_display value (P2P re-enabled)") + dev[0].set("wifi_display", "0") + if dev[0].request("GET wifi_display") != '0': + raise Exception("Unexpected wifi_display value") + @remote_compatible def test_wpas_ctrl_preauth(dev): """wpa_supplicant ctrl_iface preauth"""