summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/mptcp/Makefile
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-02-20 05:42:41 +0100
committerShuah Khan <skhan@linuxfoundation.org>2020-02-20 16:56:42 +0100
commitb9167c8078c3527de6da241c8a1a75a9224ed90a (patch)
tree546cf727bd07ff5f8fb34113b79e81b286636195 /tools/testing/selftests/net/mptcp/Makefile
parentselftest/lkdtm: Don't pollute 'git status' (diff)
downloadlinux-b9167c8078c3527de6da241c8a1a75a9224ed90a.tar.xz
linux-b9167c8078c3527de6da241c8a1a75a9224ed90a.zip
selftests: Install settings files to fix TIMEOUT failures
Commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test") added a 45 second timeout for tests, and also added a way for tests to customise the timeout via a settings file. For example the ftrace tests take multiple minutes to run, so they were given longer in commit b43e78f65b1d ("tracing/selftests: Turn off timeout setting"). This works when the tests are run from the source tree. However if the tests are installed with "make -C tools/testing/selftests install", the settings files are not copied into the install directory. When the tests are then run from the install directory the longer timeouts are not applied and the tests timeout incorrectly. So add the settings files to TEST_FILES of the appropriate Makefiles to cause the settings files to be installed using the existing install logic. Fixes: 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/net/mptcp/Makefile')
-rw-r--r--tools/testing/selftests/net/mptcp/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/mptcp/Makefile b/tools/testing/selftests/net/mptcp/Makefile
index 93de52016dde..ba450e62dc5b 100644
--- a/tools/testing/selftests/net/mptcp/Makefile
+++ b/tools/testing/selftests/net/mptcp/Makefile
@@ -8,6 +8,8 @@ TEST_PROGS := mptcp_connect.sh
TEST_GEN_FILES = mptcp_connect
+TEST_FILES := settings
+
EXTRA_CLEAN := *.pcap
include ../../lib.mk