Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1731299
| From | Shuah Khan <shuahkh@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 04/11] selftests: lib.mk: fix test executable status check to use full path |
| Date | 2017-09-13 02:00 +0200 |
| Message-ID | <up3fZ-83p-25@gated-at.bofh.it> (permalink) |
| References | <up3fY-83p-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- tools/testing/selftests/lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index e779c8758e15..22032ba802ba 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 \ -- 2.11.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/11] Kselftest make O=dir work Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-13 02:00 +0200 [PATCH 04/11] selftests: lib.mk: fix test executable status check to use full path Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-13 02:00 +0200 Re: [PATCH 00/11] Kselftest make O=dir work Greg KH <gregkh@linuxfoundation.org> - 2017-09-13 03:00 +0200
csiph-web