Skip to content

Commit c9f7504

Browse files
Yauheni Kaliutashuahkh
authored andcommitted
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 <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 99aaceb commit c9f7504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/lib.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ endef
7070

7171
run_tests: all
7272
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 \
7474
rsync -aq $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(OUTPUT); \
7575
fi
7676
@if [ "X$(TEST_PROGS)" != "X" ]; then \

0 commit comments

Comments
 (0)