From ae1b0032c195c28e0f8132f4133ed361f6a2ff90 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Tue, 8 Jun 2021 20:57:21 -0600 Subject: zmake: fix test timeout In CQ some tests that require file access may take a long time. Update the deadline for the tests to 1 minute which matches the deadline of tests in test_util.py. BRANCH=none BUG=b:188492664 TEST=run pytest (but the real test will be in CQ) Signed-off-by: Yuval Peress Change-Id: I00b15667bf4bdbbfe8101b21a58aefdce6d4ec91 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2948164 Reviewed-by: Denis Brockus --- zephyr/zmake/tests/test_build_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zephyr/zmake') diff --git a/zephyr/zmake/tests/test_build_config.py b/zephyr/zmake/tests/test_build_config.py index f80e419c5f..8f60f6dcf8 100644 --- a/zephyr/zmake/tests/test_build_config.py +++ b/zephyr/zmake/tests/test_build_config.py @@ -130,6 +130,7 @@ def parse_cmake_args(argv): @hypothesis.given(build_configs_no_kconfig, paths, paths) +@hypothesis.settings(deadline=60000) def test_popen_cmake_no_kconfig(conf, project_dir, build_dir): """Test popen_cmake for a config with no kconfig definitions.""" job_client = FakeJobClient() @@ -142,6 +143,7 @@ def test_popen_cmake_no_kconfig(conf, project_dir, build_dir): @hypothesis.given(build_configs_with_at_least_one_kconfig, paths, paths) +@hypothesis.settings(deadline=60000) def test_popen_cmake_kconfig_but_no_file(conf, project_dir, build_dir): """Test that running popen_cmake with Kconfig definitions to write out, but no path to do so, should raise an error. @@ -153,7 +155,7 @@ def test_popen_cmake_kconfig_but_no_file(conf, project_dir, build_dir): @hypothesis.given(build_configs, paths, paths) -@hypothesis.settings(deadline=None) +@hypothesis.settings(deadline=60000) def test_popen_cmake_kconfig(conf, project_dir, build_dir): job_client = FakeJobClient() -- cgit v1.2.1