Skip to contentSkip to conversation

selftests/timers: Turn off timeout setting

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

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Po-Hsu Lin

author
#0 lore raw

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

The following 4 tests in timers can take longer than the default 45 seconds that added in commit 852c8cbf (selftests/kselftest/runner.sh:
Add 45 second timeout per test) to run:
* nsleep-lat - 2m7.350s
* set-timer-lat - 2m0.66s
* inconsistency-check - 1m45.074s
* raw_skew - 2m0.013s

Thus they will be marked as failed with the current 45s setting:
not ok 3 selftests: timers: nsleep-lat # TIMEOUT
not ok 4 selftests: timers: set-timer-lat # TIMEOUT not ok 6 selftests: timers: inconsistency-check # TIMEOUT not ok 7 selftests: timers: raw_skew # TIMEOUT

Disable the timeout setting for timers can make these tests finish properly:
ok 3 selftests: timers: nsleep-lat
ok 4 selftests: timers: set-timer-lat
ok 6 selftests: timers: inconsistency-check
ok 7 selftests: timers: raw_skew

https://bugs.launchpad.net/bugs/1864626

---
 tools/testing/selftests/timers/Makefile | 1 +
 tools/testing/selftests/timers/settings | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 tools/testing/selftests/timers/settings
tools/testing/selftests/timers/Makefile +1 -0
index 7656c7c..0e73a16 100644
@@ -13,6 +13,7 @@ DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
 
 TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
 
+TEST_FILES := settings
 
 include ../lib.mk
 
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
Acked-by on v2 1/1
#1 lore raw
Quoted 48 lines · Po-Hsu Lin

The following 4 tests in timers can take longer than the default 45 seconds that added in commit 852c8cbf (selftests/kselftest/runner.sh:
Add 45 second timeout per test) to run:
* nsleep-lat - 2m7.350s
* set-timer-lat - 2m0.66s
* inconsistency-check - 1m45.074s
* raw_skew - 2m0.013s

Thus they will be marked as failed with the current 45s setting:
not ok 3 selftests: timers: nsleep-lat # TIMEOUT not ok 4 selftests: timers: set-timer-lat # TIMEOUT not ok 6 selftests: timers: inconsistency-check # TIMEOUT not ok 7 selftests: timers: raw_skew # TIMEOUT

Disable the timeout setting for timers can make these tests finish properly:
ok 3 selftests: timers: nsleep-lat
ok 4 selftests: timers: set-timer-lat
ok 6 selftests: timers: inconsistency-check
ok 7 selftests: timers: raw_skew

https://bugs.launchpad.net/bugs/1864626

---
  tools/testing/selftests/timers/Makefile | 1 +
  tools/testing/selftests/timers/settings | 1 +
  2 files changed, 2 insertions(+)

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

tools/testing/selftests/timers/Makefile +1 -0
index 7656c7c..0e73a16 100644
@@ -13,6 +13,7 @@ DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
 
  TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
 
+TEST_FILES := settings
 
  include ../lib.mk
 
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

v2 changes LGTM..

-- Joe

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

The following 4 tests in timers can take longer than the default 45 seconds that added in commit 852c8cbf (selftests/kselftest/runner.sh:
Add 45 second timeout per test) to run:

Please use the commit format:

commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test")

Quoted 11 lines

* nsleep-lat - 2m7.350s
* set-timer-lat - 2m0.66s
* inconsistency-check - 1m45.074s
* raw_skew - 2m0.013s

Thus they will be marked as failed with the current 45s setting:
not ok 3 selftests: timers: nsleep-lat # TIMEOUT not ok 4 selftests: timers: set-timer-lat # TIMEOUT not ok 6 selftests: timers: inconsistency-check # TIMEOUT not ok 7 selftests: timers: raw_skew # TIMEOUT

Quoted 8 lines

Disable the timeout setting for timers can make these tests finish properly:
ok 3 selftests: timers: nsleep-lat
ok 4 selftests: timers: set-timer-lat
ok 6 selftests: timers: inconsistency-check
ok 7 selftests: timers: raw_skew

https://bugs.launchpad.net/bugs/1864626

Please add Fixes tag with commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test")

Quoted 26 lines
---
  tools/testing/selftests/timers/Makefile | 1 +
  tools/testing/selftests/timers/settings | 1 +
  2 files changed, 2 insertions(+)

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

tools/testing/selftests/timers/Makefile +1 -0
index 7656c7c..0e73a16 100644
@@ -13,6 +13,7 @@ DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
 
  TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
 
+TEST_FILES := settings
 
  include ../lib.mk
 
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

thanks,
-- Shuah

author
#3 lore raw

Patch V3 re-submitted, thanks!
https://lore.kernel.org/linux-kselftest/[email protected]/T/#u

Quoted 62 lines · shuah
Quoted 3 lines · Po-Hsu Lin

The following 4 tests in timers can take longer than the default 45 seconds that added in commit 852c8cbf (selftests/kselftest/runner.sh:
Add 45 second timeout per test) to run:

Please use the commit format:

commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test")

Quoted 11 lines

* nsleep-lat - 2m7.350s
* set-timer-lat - 2m0.66s
* inconsistency-check - 1m45.074s
* raw_skew - 2m0.013s

Thus they will be marked as failed with the current 45s setting:
not ok 3 selftests: timers: nsleep-lat # TIMEOUT not ok 4 selftests: timers: set-timer-lat # TIMEOUT not ok 6 selftests: timers: inconsistency-check # TIMEOUT not ok 7 selftests: timers: raw_skew # TIMEOUT

Quoted 8 lines

Disable the timeout setting for timers can make these tests finish properly:
ok 3 selftests: timers: nsleep-lat
ok 4 selftests: timers: set-timer-lat
ok 6 selftests: timers: inconsistency-check
ok 7 selftests: timers: raw_skew

https://bugs.launchpad.net/bugs/1864626

Please add Fixes tag with commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test")

Quoted 26 lines
---
  tools/testing/selftests/timers/Makefile | 1 +
  tools/testing/selftests/timers/settings | 1 +
  2 files changed, 2 insertions(+)

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

tools/testing/selftests/timers/Makefile +1 -0
index 7656c7c..0e73a16 100644
@@ -13,6 +13,7 @@ DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
 
  TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
 
+TEST_FILES := settings
 
  include ../lib.mk
 
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

thanks,
-- Shuah