diff options
author | Jouni Malinen <j@w1.fi> | 2017-05-27 08:08:16 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2017-05-27 08:08:16 (GMT) |
commit | 8171d704065b3c3e8dc8b55f47bf0532ba38a550 (patch) | |
tree | ca8c2373b0916d9c53be8f6a5cf90a07502a5e8d /tests | |
parent | 8d968351a0a77824a4c703e663427cde767bbd48 (diff) | |
download | hostap-8171d704065b3c3e8dc8b55f47bf0532ba38a550.zip hostap-8171d704065b3c3e8dc8b55f47bf0532ba38a550.tar.gz hostap-8171d704065b3c3e8dc8b55f47bf0532ba38a550.tar.bz2 |
tests: Write TEST-START and TEST-STOP into kernel logs with timestamps
This makes it easier to synchronize log entries in the kernel log
(seconds from boot) and wpa_supplicant/hostapd (UNIX timestamp).
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/hwsim/run-tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 80981ba..fb33a37 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -424,6 +424,7 @@ def main(): if t.__doc__: logger.info("Test: " + t.__doc__) start = datetime.now() + open('/dev/kmsg', 'w').write('TEST-START %s @%.6f\n' % (name, time.time())) for d in dev: try: d.dump_monitor() @@ -468,6 +469,7 @@ def main(): if args.loglevel == logging.WARNING: print "Exception: " + str(e) result = "FAIL" + open('/dev/kmsg', 'w').write('TEST-STOP %s @%.6f\n' % (name, time.time())) for d in dev: try: d.dump_monitor() |