Procházet zdrojové kódy

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 f44c0807c63f0bdd9640b7b29c131590f03be0ca)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Julien Olivain před 1 rokem
rodič
revize
0f77312f94
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      support/testing/tests/package/test_gnupg2.py

+ 1 - 1
support/testing/tests/package/test_gnupg2.py

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