Skip to content
Commit 7bc0c583 authored by Alessio Balsini's avatar Alessio Balsini Committed by Valentin Schneider
Browse files

workload: add timeout to avoid broken workloads



It may happen that, when executing a workload, it gets stuck (e.g.,
because of a deadlock, a missing wakeup signal, an unlucky infinite loop
execution branch, etc.).
devlib's Target::execute, allows to specify a timeout parameter that
generates an exception if the timeout time expires.

Expose the timeout parameter to Workload::run() function that will be
directly passed to Target::execute and forwards the exception to the
caller.

Signed-off-by: default avatarAlessio Balsini <balsini@android.com>
parent 1de56eb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment