diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2019-09-26 13:52:19 -0400 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2019-10-01 15:28:38 -0400 |
commit | 131b30c94fbc0adb15f911609884dd39dada8f00 (patch) | |
tree | 05cb10fb23e1c5600d1ecab427f383b187bea4a6 /tools/testing/selftests | |
parent | 3a24f7f6b610910ee328df11392e21925cefdecb (diff) |
kselftest: exclude failed TARGETS from runlist
A TARGET which failed to be built/installed should not be included in the
runlist generated inside the run_kselftest.sh script.
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r-- | tools/testing/selftests/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index e08f26ca4071..4cdbae6f4e61 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile | |||
@@ -208,8 +208,12 @@ ifdef INSTALL_PATH | |||
208 | echo " cat /dev/null > \$$logfile" >> $(ALL_SCRIPT) | 208 | echo " cat /dev/null > \$$logfile" >> $(ALL_SCRIPT) |
209 | echo "fi" >> $(ALL_SCRIPT) | 209 | echo "fi" >> $(ALL_SCRIPT) |
210 | 210 | ||
211 | @# While building run_kselftest.sh skip also non-existent TARGET dirs: | ||
212 | @# they could be the result of a build failure and should NOT be | ||
213 | @# included in the generated runlist. | ||
211 | for TARGET in $(TARGETS); do \ | 214 | for TARGET in $(TARGETS); do \ |
212 | BUILD_TARGET=$$BUILD/$$TARGET; \ | 215 | BUILD_TARGET=$$BUILD/$$TARGET; \ |
216 | [ ! -d $$INSTALL_PATH/$$TARGET ] && echo "Skipping non-existent dir: $$TARGET" && continue; \ | ||
213 | echo "[ -w /dev/kmsg ] && echo \"kselftest: Running tests in $$TARGET\" >> /dev/kmsg" >> $(ALL_SCRIPT); \ | 217 | echo "[ -w /dev/kmsg ] && echo \"kselftest: Running tests in $$TARGET\" >> /dev/kmsg" >> $(ALL_SCRIPT); \ |
214 | echo "cd $$TARGET" >> $(ALL_SCRIPT); \ | 218 | echo "cd $$TARGET" >> $(ALL_SCRIPT); \ |
215 | echo -n "run_many" >> $(ALL_SCRIPT); \ | 219 | echo -n "run_many" >> $(ALL_SCRIPT); \ |