aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-09-23 13:01:36 (GMT)
committerJouni Malinen <j@w1.fi>2016-09-23 13:03:59 (GMT)
commit78a37200f8336f3e509d7165e89caf132ced2d90 (patch)
treed4e8e987681fb790456200da649ce86f3c1d87be /tests
parent50bb5c8627197119d39b15923a48d22acab67b5f (diff)
downloadhostap-78a37200f8336f3e509d7165e89caf132ced2d90.zip
hostap-78a37200f8336f3e509d7165e89caf132ced2d90.tar.gz
hostap-78a37200f8336f3e509d7165e89caf132ced2d90.tar.bz2
tests: Reset wlan5 device before RELOG command
This moves the wpa_supplicant debug entries from the end of a test case using a dynamically added wlan5 interface to the correct test case, i.e., the test case that added the interface instead of whatever test case happens to follow this. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/hwsim/run-tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index 9361e3a..499263f 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -473,6 +473,10 @@ def main():
logger.info("Failed to issue TEST-STOP after {} for {}".format(name, d.ifname))
logger.info(e)
result = "FAIL"
+ if args.no_reset:
+ print "Leaving devices in current state"
+ else:
+ reset_ok = reset_devs(dev, apdev)
wpas = None
try:
wpas = WpaSupplicant(global_iface="/tmp/wpas-wlan5")
@@ -483,10 +487,6 @@ def main():
pass
if wpas:
wpas.close_ctrl()
- if args.no_reset:
- print "Leaving devices in current state"
- else:
- reset_ok = reset_devs(dev, apdev)
for i in range(0, 3):
rename_log(args.logdir, 'log' + str(i), name, dev[i])