diff options
author | Yuval Peress <peress@chromium.org> | 2021-04-16 10:55:38 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-20 05:21:00 +0000 |
commit | e27adaac8eb8346ef27c23c14cc285add433ae3b (patch) | |
tree | a298fafc2c03c5163ba7467c7444860e1d1cf115 | |
parent | 3ed07a9e2b14c0a4812bed3eb5aa2076078a4d15 (diff) | |
download | chrome-ec-e27adaac8eb8346ef27c23c14cc285add433ae3b.tar.gz |
zmake: Fix test deadline
In CQ sometimes IO operations take a while, set a deadline of 1 minute
for the util tests which read/write to files.
BRANCH=none
BUG=b:185257506
TEST=pytest zephyr/zmake/tests
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ie1dd9aed3d3556f748aaa087f47a10724169529d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2829979
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2839206
Tested-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | zephyr/zmake/tests/test_util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/zmake/tests/test_util.py b/zephyr/zmake/tests/test_util.py index 7ce11fbda5..823b198e91 100644 --- a/zephyr/zmake/tests/test_util.py +++ b/zephyr/zmake/tests/test_util.py @@ -16,6 +16,7 @@ relative_path = st.from_regex(regex=r"\A\w+[\w/]*\Z") @hypothesis.given(relative_path, relative_path, relative_path) +@hypothesis.settings(deadline=60000) def test_resolve_build_dir_with_build_dir(platform_ec_subdir, project_subdir, build_subdir): with tempfile.TemporaryDirectory() as temp_dir_name: platform_ec_dir = pathlib.Path(temp_dir_name) / platform_ec_subdir @@ -28,6 +29,7 @@ def test_resolve_build_dir_with_build_dir(platform_ec_subdir, project_subdir, bu @hypothesis.given(relative_path, relative_path) +@hypothesis.settings(deadline=60000) def test_resolve_build_dir_invalid_project(platform_ec_subdir, project_subdir): try: with tempfile.TemporaryDirectory() as temp_dir_name: @@ -42,6 +44,7 @@ def test_resolve_build_dir_invalid_project(platform_ec_subdir, project_subdir): @hypothesis.given(relative_path, relative_path) +@hypothesis.settings(deadline=60000) def test_resolve_build_dir_from_project(platform_ec_subdir, project_subdir): with tempfile.TemporaryDirectory() as temp_dir_name: platform_ec_dir = pathlib.Path(temp_dir_name) / platform_ec_subdir @@ -60,6 +63,7 @@ version_tuples = st.tuples(version_integers, version_integers, version_integers) @hypothesis.given(version_tuples) +@hypothesis.settings(deadline=60000) def test_read_zephyr_version(version_tuple): with tempfile.TemporaryDirectory() as zephyr_base: with open(pathlib.Path(zephyr_base) / 'VERSION', 'w') as f: |