]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Install settings files to fix TIMEOUT failures
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Feb 2020 04:42:41 +0000 (15:42 +1100)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 20 Feb 2020 15:56:42 +0000 (08:56 -0700)
commitd27ebb0ecda8c37a7b4ddeae47714edab2c4fb76
tree546cf727bd07ff5f8fb34113b79e81b286636195
parent2b473273a49bd9c9e84bf5f6fc68ba272c77904a
selftests: Install settings files to fix TIMEOUT failures

Commit 00e694e6f2c3 ("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 c09495315957 ("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: 00e694e6f2c3 ("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>
tools/testing/selftests/ftrace/Makefile
tools/testing/selftests/livepatch/Makefile
tools/testing/selftests/net/mptcp/Makefile
tools/testing/selftests/rseq/Makefile
tools/testing/selftests/rtc/Makefile