diff mbox series

[1/1] support/testing: libgpgme: increase gpg key generation timeout

Message ID 20240210122552.1001346-1-ju.o@free.fr
State Accepted
Headers show
Series [1/1] support/testing: libgpgme: increase gpg key generation timeout | expand

Commit Message

Julien Olivain Feb. 10, 2024, 12:25 p.m. UTC
gpg key generation can take longer than the default timeout on a
loaded or slow test host. The commit increase the timeout for the
key generation command to prevent the test to randomly fail.

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
 support/testing/tests/package/test_libgpgme.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Yann E. MORIN Feb. 11, 2024, 5:27 p.m. UTC | #1
Julien, All,

On 2024-02-10 13:25 +0100, Julien Olivain spake thusly:
> gpg key generation can take longer than the default timeout on a
> loaded or slow test host. The commit increase the timeout for the
> key generation command to prevent the test to randomly fail.
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  support/testing/tests/package/test_libgpgme.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/testing/tests/package/test_libgpgme.py b/support/testing/tests/package/test_libgpgme.py
> index 28a33bab03..b497891249 100644
> --- a/support/testing/tests/package/test_libgpgme.py
> +++ b/support/testing/tests/package/test_libgpgme.py
> @@ -37,7 +37,7 @@ class TestLibGpgme(infra.basetest.BRTest):
>          # We now create our gpg key.
>          cmd = "gpg --batch --passphrase ''"
>          cmd += f" --quick-generate-key {gpg_userid} default default"
> -        self.assertRunOk(cmd)
> +        self.assertRunOk(cmd, timeout=30)
>  
>          # We should now see our key in the list.
>          self.assertRunOk(gpgme_listkey)
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
diff mbox series

Patch

diff --git a/support/testing/tests/package/test_libgpgme.py b/support/testing/tests/package/test_libgpgme.py
index 28a33bab03..b497891249 100644
--- a/support/testing/tests/package/test_libgpgme.py
+++ b/support/testing/tests/package/test_libgpgme.py
@@ -37,7 +37,7 @@  class TestLibGpgme(infra.basetest.BRTest):
         # We now create our gpg key.
         cmd = "gpg --batch --passphrase ''"
         cmd += f" --quick-generate-key {gpg_userid} default default"
-        self.assertRunOk(cmd)
+        self.assertRunOk(cmd, timeout=30)
 
         # We should now see our key in the list.
         self.assertRunOk(gpgme_listkey)