Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1702535

[PATCH] selftests: futex: fix run_tests target

From Shuah Khan <shuahkh@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH] selftests: futex: fix run_tests target
Date 2017-08-03 00:40 +0200
Message-ID <uaat4-7J5-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


make -C tools/testing/selftests/futex/ run_tests doesn't run the tests.
Running run_tests target only when $(OUTPUT) is the $(PWD) is incorrect.
When $(OUTPUT) is empty, run_tests will not run. Fix it.

Fixes: a8ba798bc8ec ("selftests: enable O and KBUILD_OUTPUT")
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 tools/testing/selftests/futex/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/futex/Makefile b/tools/testing/selftests/futex/Makefile
index e2fbb890aef9..7c647f619d63 100644
--- a/tools/testing/selftests/futex/Makefile
+++ b/tools/testing/selftests/futex/Makefile
@@ -14,7 +14,7 @@ all:
 	done
 
 override define RUN_TESTS
-	@if [ `dirname $(OUTPUT)` = $(PWD) ]; then ./run.sh; fi
+	$(OUTPUT)/run.sh
 endef
 
 override define INSTALL_RULE
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] selftests: futex: fix run_tests target Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-03 00:40 +0200
  Re: [PATCH] selftests: futex: fix run_tests target Darren Hart <dvhart@infradead.org> - 2017-08-03 03:00 +0200
    Re: [PATCH] selftests: futex: fix run_tests target Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-03 03:10 +0200
      Re: [PATCH] selftests: futex: fix run_tests target Darren Hart <dvhart@infradead.org> - 2017-08-04 18:50 +0200

csiph-web