From 3efc611f531c708b0292061fd0049b4012724c09 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sat, 10 Feb 2024 13:25:52 +0100 Subject: [PATCH] support/testing: libgpgme: increase gpg key generation timeout 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 Signed-off-by: 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)