Commit 9c1490d9 authored by Mark Brown's avatar Mark Brown Committed by Andrew Morton

selftests/mm: log skipped compaction test as a skip

Patch series "selftests/mm: Output cleanups for the compaction test".

A couple of small updates for the check_compaction selftest which make
it play more nicely with test automation systems.


This patch (of 2):

When the compaction test is run it checks to make sure that prerequistives
the test requires are available and skips the tests if not.  When this
happens we log the test as a pass rather than a skip, log as a skip so
that the distinction is clear and automation can see unexpected skips.

Link: https://lkml.kernel.org/r/20240209-kselftest-mm-cleanup-v1-0-a3c0386496b5@kernel.org
Link: https://lkml.kernel.org/r/20240209-kselftest-mm-cleanup-v1-1-a3c0386496b5@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 3e40b3f4
...@@ -174,7 +174,7 @@ int main(int argc, char **argv) ...@@ -174,7 +174,7 @@ int main(int argc, char **argv)
ksft_print_header(); ksft_print_header();
if (prereq() || geteuid()) if (prereq() || geteuid())
return ksft_exit_pass(); return ksft_exit_skip("Prerequisites unsatisfied\n");
ksft_set_plan(1); ksft_set_plan(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment