mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 08:44:03 -05:00
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>
This commit is contained in:
parent
8d968351a0
commit
8171d70406
@ -424,6 +424,7 @@ def main():
|
|||||||
if t.__doc__:
|
if t.__doc__:
|
||||||
logger.info("Test: " + t.__doc__)
|
logger.info("Test: " + t.__doc__)
|
||||||
start = datetime.now()
|
start = datetime.now()
|
||||||
|
open('/dev/kmsg', 'w').write('TEST-START %s @%.6f\n' % (name, time.time()))
|
||||||
for d in dev:
|
for d in dev:
|
||||||
try:
|
try:
|
||||||
d.dump_monitor()
|
d.dump_monitor()
|
||||||
@ -468,6 +469,7 @@ def main():
|
|||||||
if args.loglevel == logging.WARNING:
|
if args.loglevel == logging.WARNING:
|
||||||
print "Exception: " + str(e)
|
print "Exception: " + str(e)
|
||||||
result = "FAIL"
|
result = "FAIL"
|
||||||
|
open('/dev/kmsg', 'w').write('TEST-STOP %s @%.6f\n' % (name, time.time()))
|
||||||
for d in dev:
|
for d in dev:
|
||||||
try:
|
try:
|
||||||
d.dump_monitor()
|
d.dump_monitor()
|
||||||
|
Loading…
Reference in New Issue
Block a user