From 8171d704065b3c3e8dc8b55f47bf0532ba38a550 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 27 May 2017 11:08:16 +0300 Subject: [PATCH] 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 --- tests/hwsim/run-tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 80981ba06..fb33a37f1 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()