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

selftests: fix condition in run_tests

The check if there are any files to install in case of no files
compares "X " with "X" so never false.

Remove extra spaces. It may make sense to use make's $(if) function
here.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Yauheni Kaliuta and committed by
Shuah Khan
c9f75047 99aacebe

+1 -1
+1 -1
tools/testing/selftests/lib.mk
··· 70 70 71 71 run_tests: all 72 72 ifdef building_out_of_srctree 73 - @if [ "X$(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES)" != "X" ]; then \ 73 + @if [ "X$(TEST_PROGS)$(TEST_PROGS_EXTENDED)$(TEST_FILES)" != "X" ]; then \ 74 74 rsync -aq $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(OUTPUT); \ 75 75 fi 76 76 @if [ "X$(TEST_PROGS)" != "X" ]; then \