tests: Print test name to kernel log buffer
Print the test name to the kernel log buffer so debugging cross-test issues becomes easier. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
39c3c9b7dc
commit
f2a438f51d
2 changed files with 2 additions and 0 deletions
|
@ -400,6 +400,7 @@ def main():
|
|||
t = tests_to_run.pop(0)
|
||||
|
||||
name = t.__name__.replace('test_', '', 1)
|
||||
open('/dev/kmsg', 'w').write('running hwsim test case %s\n' % name)
|
||||
if log_handler:
|
||||
log_handler.stream.close()
|
||||
logger.removeHandler(log_handler)
|
||||
|
|
|
@ -29,6 +29,7 @@ mknod -m 660 /dev/ttyS0 c 4 64
|
|||
mknod -m 660 /dev/random c 1 8
|
||||
mknod -m 660 /dev/urandom c 1 9
|
||||
mknod -m 666 /dev/null c 1 3
|
||||
mknod -m 666 /dev/kmsg c 1 11
|
||||
test -f /sys/class/misc/rfkill/dev && \
|
||||
mknod -m 660 /dev/rfkill c $(cat /sys/class/misc/rfkill/dev | tr ':' ' ')
|
||||
ln -s /proc/self/fd/0 /dev/stdin
|
||||
|
|
Loading…
Reference in a new issue