From: Jouni Malinen Date: Fri, 11 Apr 2014 22:06:09 +0000 (+0300) Subject: tests: RADIO_WORK timeout X-Git-Tag: hostap_2_2~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d89c639a4db8edc77602c7743fb944e45e65913;p=thirdparty%2Fhostap.git tests: RADIO_WORK timeout Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radio_work.py b/tests/hwsim/test_radio_work.py index 1903cd47b..08a5c5e36 100644 --- a/tests/hwsim/test_radio_work.py +++ b/tests/hwsim/test_radio_work.py @@ -53,3 +53,13 @@ def test_ext_radio_work(dev, apdev): if "ext:" in items: logger.info("Pending radio work items:\n" + items) raise Exception("Unexpected remaining radio work item") + + id = dev[0].request("RADIO_WORK add test-work timeout=1") + ev = dev[0].wait_event(["EXT-RADIO-WORK-START"]) + if ev is None: + raise Exception("Timeout while waiting radio work to start") + ev = dev[0].wait_event(["EXT-RADIO-WORK-TIMEOUT"], timeout=2) + if ev is None: + raise Exception("Timeout while waiting radio work to time out") + if id not in ev: + raise Exception("Radio work id mismatch")