]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
selftests/livepatch: add test delimiter to dmesg
authorJoe Lawrence <joe.lawrence@redhat.com>
Thu, 18 Jun 2020 18:10:40 +0000 (14:10 -0400)
committerPetr Mladek <pmladek@suse.com>
Fri, 19 Jun 2020 08:47:18 +0000 (10:47 +0200)
Make it bit easier to parse the kernel logs during the selftests by
adding a "===== TEST: $test =====" delimiter when each individual test
begins.

Suggested-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Reviewed-by: Yannick Cote <ycote@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200618181040.21132-4-joe.lawrence@redhat.com
tools/testing/selftests/livepatch/functions.sh

index 5e5a79179fc1d7c56a06e3c89cff1547adc0b9a6..36648ca367c23841d84acce8146f4f33903ccad6 100644 (file)
@@ -264,6 +264,7 @@ function start_test {
 
        save_dmesg
        echo -n "TEST: $test ... "
+       log "===== TEST: $test ====="
 }
 
 # check_result() - verify dmesg output