Skip to contentSkip to conversation

selftests/timers: Turn off timeout setting

PATCH Superseded Po-Hsu Lin 3 participants 4 messages Feb 25, 2020

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Po-Hsu Lin

author
#0 lore raw

PATCH 1/1 selftests/timers: Turn off timeout setting

Tests in timers especially nsleep-lat, set-timer-lat, inconsistency-check and raw_skew these 4 tests can take longer than the default 45 seconds that introduced in commit 852c8cbf (selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.

Disable the timeout setting for timers instead of looking for an proper value to make it more general.

---
 tools/testing/selftests/timers/settings | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/timers/settings
tools/testing/selftests/timers/settings new file +1 -0
new file mode 100644
index 0000000..e7b9417
@@ -0,0 +1 @@
+timeout=0
Signature · 1 line
2.7.4
#1 lore raw
Quoted 21 lines · Po-Hsu Lin

Tests in timers especially nsleep-lat, set-timer-lat, inconsistency-check and raw_skew these 4 tests can take longer than the default 45 seconds that introduced in commit 852c8cbf (selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.

Disable the timeout setting for timers instead of looking for an proper value to make it more general.

---
  tools/testing/selftests/timers/settings | 1 +
  1 file changed, 1 insertion(+)

create mode 100644 tools/testing/selftests/timers/settings

tools/testing/selftests/timers/settings new file +0 -0
new file mode 100644
index 0000000..e7b9417

tools/testing/selftests/timers/settings line 1

Quoted 1 line
tools/testing/selftests/timers/settings new file +1 -0
@@ -0,0 +1 @@
+timeout=0

Hi,

Michael recently posted a patch that adds the various selftest settings files to the TEST_FILES list, ensuring that they get copied to the install directory along with the tests:

https://lore.kernel.org/linux-kselftest/[email protected]/

I think if you add that to the corresponding Makefile, you should be set.

Regards,

-- Joe

maintainer
#2 lore raw
In reply to Po-Hsu Lin
Quoted 21 lines · Po-Hsu Lin

Tests in timers especially nsleep-lat, set-timer-lat, inconsistency-check and raw_skew these 4 tests can take longer than the default 45 seconds that introduced in commit 852c8cbf (selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.

Disable the timeout setting for timers instead of looking for an proper value to make it more general.

---
  tools/testing/selftests/timers/settings | 1 +
  1 file changed, 1 insertion(+)

create mode 100644 tools/testing/selftests/timers/settings

tools/testing/selftests/timers/settings new file +0 -0
new file mode 100644
index 0000000..e7b9417

tools/testing/selftests/timers/settings line 1

Quoted 1 line
tools/testing/selftests/timers/settings new file +1 -0
@@ -0,0 +1 @@
+timeout=0

What happens when you disable this and set it to 0? How long does the rest run in this case? Can you add the details to the change log please.

thanks,
-- Shuah

author
#3 lore raw

Sure,
I will send V2 that include the change for makefile and more detail about the change.
Thanks for the feedback,

Quoted 30 lines · shuah
Quoted 21 lines · Po-Hsu Lin

Tests in timers especially nsleep-lat, set-timer-lat, inconsistency-check and raw_skew these 4 tests can take longer than the default 45 seconds that introduced in commit 852c8cbf (selftests/kselftest/runner.sh: Add 45 second timeout per test) to run.

Disable the timeout setting for timers instead of looking for an proper value to make it more general.

---
  tools/testing/selftests/timers/settings | 1 +
  1 file changed, 1 insertion(+)

create mode 100644 tools/testing/selftests/timers/settings

tools/testing/selftests/timers/settings new file +0 -0
new file mode 100644
index 0000000..e7b9417

tools/testing/selftests/timers/settings line 1

Quoted 1 line
tools/testing/selftests/timers/settings new file +1 -0
@@ -0,0 +1 @@
+timeout=0

What happens when you disable this and set it to 0? How long does the rest run in this case? Can you add the details to the change log please.

thanks,
-- Shuah