tests: Reset devices based on each test
authorJouni Malinen <j@w1.fi>
Sat, 9 Mar 2013 17:00:57 +0000 (19:00 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Mar 2013 17:00:57 +0000 (19:00 +0200)
Make sure the devices are in known state before starting each test case.

Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/run-p2p-tests.py

index 4f97b69..e8060b9 100755 (executable)
@@ -56,6 +56,8 @@ def main():
         if test_filter:
             if test_filter not in t.__name__:
                 continue
+        for d in dev:
+            d.reset()
         print "START " + t.__name__
         for d in dev:
             d.request("NOTE TEST-START " + t.__name__)