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

selftests/android: Fix line continuation in Makefile

The Makefile lacks a couple of line continuation backslashes
in an `if' clause, which can make the subsequent rsync
command go awry over the whole filesystem (`rsync -a / /`).

/bin/sh: -c: line 5: syntax error: unexpected end of file
make[1]: [all] Error 1 (ignored)
TEST=$DIR"_test.sh"; \
if [ -e $DIR/$TEST ]; then
/bin/sh: -c: line 2: syntax error: unexpected end of file
make[1]: [all] Error 1 (ignored)
rsync -a $DIR/$TEST $BUILD_TARGET/;
[...a myriad of:]
[ rsync: readlink_stat("...") failed: Permission denied (13)]
[ skipping non-regular file "..."]
[ rsync: opendir "..." failed: Permission denied (13)]
[and many other errors...]
fi
make[1]: fi: Command not found
make[1]: [all] Error 127 (ignored)
done
make[1]: done: Command not found
make[1]: [all] Error 127 (ignored)

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Acked-by: Pintu Agarwal <pintu.ping@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

authored by

Daniel Díaz and committed by
Shuah Khan
64136fb7 70b574e7

+4 -4
+4 -4
tools/testing/selftests/android/Makefile
··· 11 11 BUILD_TARGET=$(OUTPUT)/$$DIR; \ 12 12 mkdir $$BUILD_TARGET -p; \ 13 13 make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ 14 - #SUBDIR test prog name should be in the form: SUBDIR_test.sh 14 + #SUBDIR test prog name should be in the form: SUBDIR_test.sh \ 15 15 TEST=$$DIR"_test.sh"; \ 16 - if [ -e $$DIR/$$TEST ]; then 17 - rsync -a $$DIR/$$TEST $$BUILD_TARGET/; 18 - fi 16 + if [ -e $$DIR/$$TEST ]; then \ 17 + rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \ 18 + fi \ 19 19 done 20 20 21 21 override define RUN_TESTS