diff options
author | Joe Lawrence <joe.lawrence@redhat.com> | 2020-06-18 21:10:38 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2020-06-19 11:46:42 +0300 |
commit | 2eeb0d457d13ed7b170e13cd99d15509d0dd832d (patch) | |
tree | 2b210a9706d67d8053ebf7c4d9a93449b0c2bbfe /tools/testing/selftests/livepatch/test-shadow-vars.sh | |
parent | 270f7806d3b91b9c71fa8fe66f7dcc2d6587694e (diff) | |
download | linux-2eeb0d457d13ed7b170e13cd99d15509d0dd832d.tar.xz |
selftests/livepatch: Don't clear dmesg when running tests
Inspired by commit f131d9edc29d ("selftests/lkdtm: Don't clear dmesg
when running tests"), keep a reference dmesg copy when beginning each
test. This way check_result() can compare against the initial copy
rather than relying upon an empty log.
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-2-joe.lawrence@redhat.com
Diffstat (limited to 'tools/testing/selftests/livepatch/test-shadow-vars.sh')
-rwxr-xr-x | tools/testing/selftests/livepatch/test-shadow-vars.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/testing/selftests/livepatch/test-shadow-vars.sh b/tools/testing/selftests/livepatch/test-shadow-vars.sh index 7c016548c2ea..e04cb354f56b 100755 --- a/tools/testing/selftests/livepatch/test-shadow-vars.sh +++ b/tools/testing/selftests/livepatch/test-shadow-vars.sh @@ -9,11 +9,9 @@ MOD_TEST=test_klp_shadow_vars setup_config -# TEST: basic shadow variable API # - load a module that exercises the shadow variable API -echo -n "TEST: basic shadow variable API ... " -dmesg -C +start_test "basic shadow variable API" load_mod $MOD_TEST unload_mod $MOD_TEST |