summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/lib.mk
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-09-08 04:04:26 +0200
committerShuah Khan <shuahkh@osg.samsung.com>2017-09-21 15:55:37 +0200
commite0a5696a23290c31c5ac2c76f0e7fe50a12c1fc6 (patch)
treefe5cb08eb93f3fb12557c29b2dfc3b21eb36a069 /tools/testing/selftests/lib.mk
parentselftests: Makefile: clear LDFLAGS for make O=dir use-case (diff)
downloadlinux-e0a5696a23290c31c5ac2c76f0e7fe50a12c1fc6.tar.xz
linux-e0a5696a23290c31c5ac2c76f0e7fe50a12c1fc6.zip
selftests: lib.mk: fix test executable status check to use full path
Fix test executable status check to use full path for make O=dir case,m when tests are relocated to user specified object directory. Without the full path, this check fails to find the file and fails the test. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/lib.mk')
-rw-r--r--tools/testing/selftests/lib.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
index 266d3ed4bb41..fd1cbbbca8d7 100644
--- a/tools/testing/selftests/lib.mk
+++ b/tools/testing/selftests/lib.mk
@@ -21,7 +21,7 @@ define RUN_TESTS
test_num=`echo $$test_num+1 | bc`; \
echo "selftests: $$BASENAME_TEST"; \
echo "========================================"; \
- if [ ! -x $$BASENAME_TEST ]; then \
+ if [ ! -x $$TEST ]; then \
echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\
echo "not ok 1..$$test_num selftests: $$BASENAME_TEST [FAIL]"; \
else \