Browse Source

tests: Reset devices based on each test

Make sure the devices are in known state before starting each test case.

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen 12 years ago
parent
commit
e5774e1888
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/hwsim/run-p2p-tests.py

+ 2 - 0
tests/hwsim/run-p2p-tests.py

@@ -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__)