Skip to content

Refine overall timeout and runtime management in LTP

Li Wang ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 3 patches 1 replyIn review

Patches in v2 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [LTP] [PATCH v2 0/3] Refine overall timeout and runtime management in LTP

This patch series introduces a restructured approach to managing timeouts and runtime limits in the LTP framework. The changes aim to simplify timeout handling, improve clarity, and provide better separation between the phases of a test (setup, execution, and cleanup).

The main updates include refining the description and usage of .timeout, deprecating TST_UNLIMITED_RUNTIME, and introducing the tst_set_timeout() function. Additionally, test cases that previously relied on .max_runtime have been updated to adopt the revised logic, either by moving to .timeout directly or transitioning to .runtime depending on their behavior.

The series ends with an update to the set_mempolicy01 test, demonstrating the use of tst_set_timeout() to determine an upper bound for its execution.

CI job: https://github.com/wangli5665/ltp/actions/runs/12683826906/

Major changes V1 to V2:

* Refined the description of .timeout usage and its relationship with .runtime.

* Moved .max_runtime to .timeout directly for tests where runtime is not explicitly used.

* Transitioned .max_runtime to .runtime for tests that call tst_remaining_runtime() or use the fuzzy_sync library.

* Added the tst_set_timeout() function to allow test cases to set the overall timeout dynamically, particularly useful for tests that aim to determine upper execution bounds.

* Updated set_mempolicy01 to make use of tst_set_timeout().

Li Wang (3):
lib: redefine the overall timeout logic of test
lib: add tst_set_timeout for reset entire timeout
set_mempolicy01: make use of tst_set_timeout

Signature · 5 lines
2.47.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp