On 11/30/2021 6:36 PM, tan.shaopeng@xxxxxxxxxxx wrote:
On 11/10/2021 1:33 AM, Shaopeng Tan wrote:
From: "Tan, Shaopeng" <tan.shaopeng@xxxxxxxxxxxxxx>
tools/testing/selftests/kselftest/runner.sh.To ensure the resctrl_tests finish in limited time, this commit
changed the default limited time(45s) to 120 seconds for
resctrl_tests by adding "setting" file.
How is changing the timeout related to the resctrl framework changes?
Is it not a separate change?
In selftest framwork, the default limited time of all tests is 45
seconds which is specified by common file
Each test can change the limited time individually by adding a "setting"
file into its own directory. I changed the limited time of resctrl
to120s because 45s was not enough in my environment.
Understood. My question was if this can be a separate change with its own
patch? It seems to me that this deserves its own patch ... but actually it also
raises an important issue that the resctrl tests are taking a long time.
I do see a rule for tests in Documentation/dev-tools/kselftest.rst:
"Don't take too long". This may be a motivation _not_ to include the resctrl tests
in the regular kselftest targets because when a user wants to run all tests on a
system it needs to be quick and the resctrl tests are not quick.
I think 120s is not long, there are 6 tests with a limited time over 120s,
for example, the limited time of net test is set 300s.