Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/mm: honor VM_SELFTEST_ITEMS from the environment
@ 2026-11-22 18:50 Nico Pache (Red Hat)
  2026-11-22 19:02 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Nico Pache (Red Hat) @ 2026-11-22 18:50 UTC (permalink / raw)
  To: linux-mm, linux-kselftest
  Cc: Andrew Morton, David Hildenbrand, Lorenzo Stoakes,
	Liam R. Howlett, Vlastimil Babka, Mike Rapoport,
	Suren Baghdasaryan, Michal Hocko, Shuah Khan, Tianyi Chen, stable,
	Nico Pache (Red Hat)

The unconditional default assignment overwrites VM_SELFTEST_ITEMS from
the environment. This regresses environments that use the variable to
select test groups: without -t, all default test categories run instead
of the requested groups. The -t option continues to override it.

Fixes: 4844f5b84a8e ("selftests/mm: reject invalid test selections before running tests")
Cc: stable@vger.kernel.org
Signed-off-by: Nico Pache (Red Hat) <nico.pache@linux.dev>
---
 tools/testing/selftests/mm/run_vmtests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
index a1b45a3dedae..aa63f840cf60 100755
--- a/tools/testing/selftests/mm/run_vmtests.sh
+++ b/tools/testing/selftests/mm/run_vmtests.sh
@@ -102,7 +102,7 @@ RUN_ALL=false
 RUN_DESTRUCTIVE=false
 TAP_PREFIX="# "
 
-VM_SELFTEST_ITEMS="default"
+: "${VM_SELFTEST_ITEMS:=default}"
 
 while getopts "aht:nd" OPT; do
 	case ${OPT} in

---
base-commit: 2dc60bd9975fc8666a13d58410499e06e6799ba9
change-id: 20261122-vm_selftests_items_fix-f118ab78426e

Best regards,
--  
Nico Pache (Red Hat) <nico.pache@linux.dev>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-22 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 18:50 [PATCH] selftests/mm: honor VM_SELFTEST_ITEMS from the environment Nico Pache (Red Hat)
2026-11-22 19:02 ` Andrew Morton
2026-11-22 19:15   ` Nico Pache

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox