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 <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Julien Olivain 2024-02-10 13:25:52 +01:00 committed by Yann E. MORIN
parent 3abd1ca5ca
commit 3efc611f53

View File

@ -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)