提交 e0a5696a 编写于 作者: S Shuah Khan

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: NShuah Khan <shuahkh@osg.samsung.com>
上级 52fd1d08
...@@ -21,7 +21,7 @@ define RUN_TESTS ...@@ -21,7 +21,7 @@ define RUN_TESTS
test_num=`echo $$test_num+1 | bc`; \ test_num=`echo $$test_num+1 | bc`; \
echo "selftests: $$BASENAME_TEST"; \ echo "selftests: $$BASENAME_TEST"; \
echo "========================================"; \ echo "========================================"; \
if [ ! -x $$BASENAME_TEST ]; then \ if [ ! -x $$TEST ]; then \
echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\ echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\
echo "not ok 1..$$test_num selftests: $$BASENAME_TEST [FAIL]"; \ echo "not ok 1..$$test_num selftests: $$BASENAME_TEST [FAIL]"; \
else \ else \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册