selftests: lib.mk: cleanup RUN_TESTS define and make it readable
authorShuah Khan (Samsung OSG) <shuah@kernel.org>
Thu, 19 Apr 2018 22:30:33 +0000 (16:30 -0600)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 30 May 2018 21:21:51 +0000 (15:21 -0600)
commit42b44c34136857ccdf90ebb1cbc38f2bf0aec7a1
tree683d1368ef3ad5480cd43f13db644fb6b2cbf37c
parentd8da8665e8e34c14f9b20fe3f21dff29b24cbf02
selftests: lib.mk: cleanup RUN_TESTS define and make it readable

Refine RUN_TESTS define's output block for summary and non-summary code
to remove duplicate code and make it readable.

cd `dirname $$TEST` > /dev/null; and cd - > /dev/null; are moved
to common code block and indentation fixed.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
tools/testing/selftests/lib.mk