Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: memory-hotplug: delete RUN_TESTS and EMIT_TESTS overrides

Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in
lib.mk. Common defines work after making the change the test to run
with ratio=2 as the default mode to be able to invoke the test without
the "-r 2" argument from the common RUN_TESTS and EMIT_TESTS.

The run_full_tests target now calls the test with "-r 10".

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Reviewed-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Lei.Yang@windriver.com
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>

+3 -5
+1 -4
tools/testing/selftests/memory-hotplug/Makefile
··· 4 4 include ../lib.mk 5 5 6 6 TEST_PROGS := mem-on-off-test.sh 7 - override RUN_TESTS := @./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]" 8 - 9 - override EMIT_TESTS := echo "$(subst @,,$(RUN_TESTS))" 10 7 11 8 run_full_test: 12 - @/bin/bash ./mem-on-off-test.sh && echo "memory-hotplug selftests: [PASS]" || echo "memory-hotplug selftests: [FAIL]" 9 + @/bin/bash ./mem-on-off-test.sh -r 10 && echo "memory-hotplug selftests: [PASS]" || echo "memory-hotplug selftests: [FAIL]" 13 10 14 11 clean:
+2 -1
tools/testing/selftests/memory-hotplug/mem-on-off-test.sh
··· 133 133 134 134 error=-12 135 135 priority=0 136 - ratio=10 136 + # Run with default of ratio=2 for Kselftest run 137 + ratio=2 137 138 retval=0 138 139 139 140 while getopts e:hp:r: opt; do