]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/livepatch: Do not check order when using "comm" for dmesg checking
authorMiroslav Benes <mbenes@suse.cz>
Thu, 27 Aug 2020 11:07:09 +0000 (13:07 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 27 Aug 2020 13:27:24 +0000 (15:27 +0200)
commitb666c4942d4e13eef851e52633963c3dd0f7168f
tree7b48e43deba7aca2e5d2d42145fe6dc0794302c2
parenta4a2cf08b09eeff77ff2b4f7be243cbc553a5928
selftests/livepatch: Do not check order when using "comm" for dmesg checking

check_result() uses "comm" to check expected results of selftests output
in dmesg. Everything works fine if timestamps in dmesg are unique. If
not, like in this example

[   86.844422] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state
[   86.844422] livepatch: 'test_klp_callbacks_demo': starting unpatching transition

, "comm" fails with "comm: file 2 is not in sorted order". Suppress the
order checking with --nocheck-order option.

Fixes: 519a4d8e3560 ("selftests/livepatch: Use "comm" instead of "diff" for dmesg")
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
tools/testing/selftests/livepatch/functions.sh