tests: Fix wpas_ctrl_country to match the fixed event data

This test case for enforcing the incorrect init=DRIVER instead of
init=CORE for the event due to bug in the event message.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-07-02 13:33:24 +03:00 committed by Jouni Malinen
parent 42619d68a6
commit 8094a0077a

View file

@ -935,7 +935,7 @@ def test_wpas_ctrl_country(dev, apdev):
ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"]) ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"])
if ev is None: if ev is None:
raise Exception("regdom change event not seen") raise Exception("regdom change event not seen")
if "init=DRIVER type=WORLD" not in ev: if "init=CORE type=WORLD" not in ev:
raise Exception("Unexpected event contents: " + ev) raise Exception("Unexpected event contents: " + ev)
finally: finally:
subprocess.call(['sudo', 'iw', 'reg', 'set', '00']) subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])