Преглед изворни кода

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 <vfazio@xes-inc.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 9bc3bbce3873667c229d8b16552f58045ee3c439)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Vincent Fazio пре 5 месеци
родитељ
комит
be469ec0cc

+ 1 - 0
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

+ 1 - 0
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