Skip to content

shell test timeout handling

Petr Vorel ltp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tst_test.sh: Run cleanup also after test timeouttestcases/lib/tst_test.sh+22 -31 reply
1/3tst_test.sh: Run cleanup also after test timeout+0 -00 replies
2/3test: Adding timeout03.sh for testing _tst_kill_test()lib/newlib_tests/shell/timeout03.sh+47 -01 reply
2/3test: Adding timeout03.sh for testing _tst_kill_test()+0 -00 replies
3/3zram: Increase timeout according to used devicestestcases/kernel/device-drivers/zram/zram_lib.sh+2 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLi WangCyril Hrubis
SeriesR-b
1/3R-b
1/3R-b
2/3
2/3
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [LTP] [PATCH 0/3] shell test timeout handling

Hi,

changes before previous attempt [1]
* _tst_kill_test() (Cyril)
* added test timeout03.sh
* update trap message (Joerg)

NOTE: we have no way to print summary from _tst_do_exit if cleanup get stuck, but IMHO there is no simple way how to solve it (we'd have to use mapped memory to increment counter also in shell API as Cyril suggested)

[1] https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/

Petr Vorel (3):
tst_test.sh: Run cleanup also after test timeout
test: Adding timeout03.sh for testing _tst_kill_test()
zram: Increase timeout according to used devices

 lib/newlib_tests/shell/timeout03.sh           | 47 +++++++++++++++++++
 .../kernel/device-drivers/zram/zram_lib.sh    |  2 +
 testcases/lib/tst_test.sh                     | 25 ++++++++--
 3 files changed, 71 insertions(+), 3 deletions(-)
 create mode 100755 lib/newlib_tests/shell/timeout03.sh
Signature · 1 line
2.30.1