selftests/mm: skip hugevm test if kernel config file is not present
authorZi Yan <ziy@nvidia.com>
Fri, 16 May 2025 13:29:38 +0000 (09:29 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 1 Jun 2025 05:46:11 +0000 (22:46 -0700)
commit115155901db2593d7adbd3e84d0889f591fbb6fc
treeaf4f45244485ed063799b534d73c47a547f44687
parent6d211303121fdef3b960125ceeafd1073df05ae6
selftests/mm: skip hugevm test if kernel config file is not present

When running hugevm tests in a machine without kernel config present,
e.g., a VM running a kernel without CONFIG_IKCONFIG_PROC nor
/boot/config-*, skip hugevm tests, which reads kernel config to get page
table level information.

Link: https://lkml.kernel.org/r/20250516132938.356627-3-ziy@nvidia.com
Signed-off-by: Zi Yan <ziy@nvidia.com>
Acked-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Adam Sindelar <adam@wowsignal.io>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/va_high_addr_switch.sh