]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix dfs_cac_restart_on_enable false negative by using common finalizer
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 30 May 2019 08:05:53 +0000 (17:05 +0900)
committerJouni Malinen <j@w1.fi>
Sun, 2 Jun 2019 14:05:49 +0000 (17:05 +0300)
dfs_cac_restart_on_enable fails with this message.

---------------
START dfs_cac_restart_on_enable 1/1
wlan0: Country code not reset back to 00: is FI
wlan0: Country code cleared back to 00
FAIL dfs_cac_restart_on_enable 3.037694 2019-05-28 01:35:07.548390
failed tests: dfs_cac_restart_on_enable
---------------

This patch fixes the false negative.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
tests/hwsim/test_dfs.py

index f14222daaebd8b4f6bbd7baabc3be66594e8b590..38c3373f2f483269564b2e9697053fd034f469b6 100644 (file)
@@ -507,7 +507,4 @@ def test_dfs_cac_restart_on_enable(dev, apdev):
         hapd.disable()
 
     finally:
-        if hapd:
-            hapd.request("DISABLE")
-        subprocess.call(['iw', 'reg', 'set', '00'])
-        time.sleep(0.1)
+        clear_regdom(hapd, dev)