From be469ec0cc06cae4cdd76e7c5813f15604b6502a Mon Sep 17 00:00:00 2001 From: Vincent Fazio Date: Fri, 14 Feb 2025 11:44:32 -0600 Subject: [PATCH] support/testing: test_python_{gnupg, spake2}: increase timeout value Previously, these tests had the potential for timing out with the default 5 second timeout value if initializing /dev/urandom took too long. Now the tests use a 10 second timeout value. Signed-off-by: Vincent Fazio Signed-off-by: Julien Olivain (cherry picked from commit 9bc3bbce3873667c229d8b16552f58045ee3c439) Signed-off-by: Peter Korsgaard --- support/testing/tests/package/test_python_gnupg.py | 1 + support/testing/tests/package/test_python_spake2.py | 1 + 2 files changed, 2 insertions(+) diff --git a/support/testing/tests/package/test_python_gnupg.py b/support/testing/tests/package/test_python_gnupg.py index 8861115130..8b438aed15 100644 --- a/support/testing/tests/package/test_python_gnupg.py +++ b/support/testing/tests/package/test_python_gnupg.py @@ -9,3 +9,4 @@ class TestPythonPy3GnuPG(TestPythonPackageBase): BR2_PACKAGE_PYTHON_GNUPG=y """ sample_scripts = ["tests/package/sample_python_gnupg.py"] + timeout = 10 # /dev/urandom can take a while to become initialized diff --git a/support/testing/tests/package/test_python_spake2.py b/support/testing/tests/package/test_python_spake2.py index fb47a0802c..0629772bc3 100644 --- a/support/testing/tests/package/test_python_spake2.py +++ b/support/testing/tests/package/test_python_spake2.py @@ -9,3 +9,4 @@ class TestPythonPy3Spake2(TestPythonPackageBase): BR2_PACKAGE_PYTHON_SPAKE2=y """ sample_scripts = ["tests/package/sample_python_spake2.py"] + timeout = 10 # /dev/urandom can take a while to become initialized