Parcourir la 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 il y a 12 ans
Parent
commit
e5774e1888
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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__)