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

selftests: add missing test result status in memory-hotplug test

it only prints FAIL status when test fails, but doesn't print PASS
status when test pass,this patch is to add PASS status in the test log.

Signed-off-by: Lei Yang <Lei.Yang@windriver.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

authored by

lei.yang@windriver.com and committed by
Shuah Khan
d3611d72 2d80c92d

+2 -2
+2 -2
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 [FAIL]" 7 + override RUN_TESTS := ./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]" 8 8 override EMIT_TESTS := echo "$(RUN_TESTS)" 9 9 10 10 run_full_test: 11 - @/bin/bash ./mem-on-off-test.sh || echo "memory-hotplug selftests: [FAIL]" 11 + @/bin/bash ./mem-on-off-test.sh && echo "memory-hotplug selftests: [PASS]" || echo "memory-hotplug selftests: [FAIL]" 12 12 13 13 clean: