support/testing: gnupg2: increase a timeout

The symmetric encryption test can sometimes take longer than the default
timeout. This commit increase the timeout to 10 seconds for that
command.

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit f44c0807c6)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Julien Olivain
2024-02-07 20:44:28 +01:00
committed by Peter Korsgaard
parent 4714693beb
commit 722c67da96

View File

@@ -37,7 +37,7 @@ class TestGnupg2(infra.basetest.BRTest):
# Test symmetric encrypt
cmd = "gpg --batch --symmetric"
cmd += " --passphrase '{}' {}".format(good_passphrase, plain_file)
self.assertRunOk(cmd)
self.assertRunOk(cmd, timeout=10)
# Test symmetric decrypt
cmd = "gpg --batch --decrypt"