diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-02-08 14:19:01 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-12 04:18:04 +0000 |
commit | 1a16ef361e2eaf9b113d587ba350fa1d103f800b (patch) | |
tree | 44ac0f712faf7c42cc2cdaa4740310479aa74518 /zephyr/zmake/zmake/project.py | |
parent | e923c737379f2970118b2c0b080bcb25191c4d25 (diff) | |
download | chrome-ec-1a16ef361e2eaf9b113d587ba350fa1d103f800b.tar.gz |
zmake: Add timeout to ztest test
Add a timeout for all tests run by ztest, defaulting to 2 minutes. The
timeout can be customized on a test by test basis by setting
test_timeout_secs in the test's BUILD.py
BRANCH=None
BUG=b:218493723
TEST=Set timeout to 2s, and ran zmake test on the drivers test.
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I48f56a7d67c91d482094e0dc123bdacb6ffa79df
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3449123
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/zmake/zmake/project.py')
-rw-r--r-- | zephyr/zmake/zmake/project.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/zmake/zmake/project.py b/zephyr/zmake/zmake/project.py index a6d28a68e2..1bac91cbc4 100644 --- a/zephyr/zmake/zmake/project.py +++ b/zephyr/zmake/zmake/project.py @@ -98,6 +98,7 @@ class ProjectConfig: dts_overlays: "list[str]" = dataclasses.field(default_factory=list) kconfig_files: "list[pathlib.Path]" = dataclasses.field(default_factory=list) project_dir: pathlib.Path = dataclasses.field(default_factory=pathlib.Path) + test_timeout_secs: float = dataclasses.field(default=2 * 60) class Project: |