OSDN Git Service

selftests: lib.mk: move running and printing result to a new function
authorShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 25 Apr 2018 15:32:20 +0000 (09:32 -0600)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 30 May 2018 21:21:51 +0000 (15:21 -0600)
commit7afed3dc36ebaf4e4375db6d36e0e766a7fd4d44
treee6dd062d9db1848e4a1675c5a12b52a3b748f132
parent3f4435b5149372b3bbc5acab5c835d490490d6bc
selftests: lib.mk: move running and printing result to a new function

RUN_TESTS function has grown and becoming harder to maintain. Move
the code that runs and tests for returns codes to a new function
and call it from RUN_TESTS.

A new RUN_TEST_PRINT_RESULT is created to simplify RUN_TESTS and make it
easier to add handling for other return codes as needed.

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