diff mbox series

[1/1] support/testing: gnupg2: increase a timeout

Message ID 20240207194428.591147-1-ju.o@free.fr
State Accepted
Headers show
Series [1/1] support/testing: gnupg2: increase a timeout | expand

Commit Message

Julien Olivain Feb. 7, 2024, 7:44 p.m. UTC
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>
---
 support/testing/tests/package/test_gnupg2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni Feb. 7, 2024, 7:49 p.m. UTC | #1
On Wed,  7 Feb 2024 20:44:28 +0100
Julien Olivain <ju.o@free.fr> wrote:

> 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>
> ---
>  support/testing/tests/package/test_gnupg2.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
Peter Korsgaard March 8, 2024, 11:30 a.m. UTC | #2
>>>>> "Julien" == Julien Olivain <ju.o@free.fr> writes:

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

Committed to 2023.02.x and 2023.11.x, thanks.
diff mbox series

Patch

diff --git a/support/testing/tests/package/test_gnupg2.py b/support/testing/tests/package/test_gnupg2.py
index 4505e1c339..2b18f54fa3 100644
--- a/support/testing/tests/package/test_gnupg2.py
+++ b/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"