1
0
Fork 0
alistair23-linux/tools/testing/selftests/rtc
Michael Ellerman 20e559d8f7 selftests: Install settings files to fix TIMEOUT failures
commit b9167c8078 upstream.

Commit 852c8cbf34 ("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 b43e78f65b ("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: 852c8cbf34 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-05 16:43:47 +01:00
..
.gitignore selftests: move RTC tests to rtc subfolder 2018-05-30 15:21:51 -06:00
Makefile selftests: Install settings files to fix TIMEOUT failures 2020-03-05 16:43:47 +01:00
rtctest.c selftests: rtc: rtctest: specify timeouts 2019-05-24 13:39:58 -06:00
setdate.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
settings selftests/kselftest/runner.sh: Add 45 second timeout per test 2019-10-01 13:33:28 -06:00