diff options
author | Shuah Khan <shuahkh@osg.samsung.com> | 2017-09-07 22:04:26 -0400 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-09-21 09:55:37 -0400 |
commit | e0a5696a23290c31c5ac2c76f0e7fe50a12c1fc6 (patch) | |
tree | fe5cb08eb93f3fb12557c29b2dfc3b21eb36a069 | |
parent | 52fd1d082398b928a86d4fdf33c9f3abe1bf7914 (diff) |
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>
-rw-r--r-- | tools/testing/selftests/lib.mk | 2 |
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 | |||
21 | test_num=`echo $$test_num+1 | bc`; \ | 21 | test_num=`echo $$test_num+1 | bc`; \ |
22 | echo "selftests: $$BASENAME_TEST"; \ | 22 | echo "selftests: $$BASENAME_TEST"; \ |
23 | echo "========================================"; \ | 23 | echo "========================================"; \ |
24 | if [ ! -x $$BASENAME_TEST ]; then \ | 24 | if [ ! -x $$TEST ]; then \ |
25 | echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\ | 25 | echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\ |
26 | echo "not ok 1..$$test_num selftests: $$BASENAME_TEST [FAIL]"; \ | 26 | echo "not ok 1..$$test_num selftests: $$BASENAME_TEST [FAIL]"; \ |
27 | else \ | 27 | else \ |