summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-04-16 10:55:38 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-16 19:21:29 +0000
commit11ffd60460ee7cb681cc689bc633494a4af95b8d (patch)
treea298fafc2c03c5163ba7467c7444860e1d1cf115
parent49836da4a8993037f59a3d0c1b01b6c3692c4e1c (diff)
downloadchrome-ec-11ffd60460ee7cb681cc689bc633494a4af95b8d.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>
-rw-r--r--zephyr/zmake/tests/test_util.py4
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: