File: 0013-tests-Avoid-large-output-during-signature-verificati.patch

package info (click to toggle)
rnp 0.18.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,660 kB
  • sloc: cpp: 74,609; python: 5,247; ansic: 5,035; sh: 1,651; makefile: 25
file content (35 lines) | stat: -rw-r--r-- 1,943 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri, 17 Oct 2025 19:30:03 -0400
Subject: tests: Avoid large output during signature verification

gpg-sq emits the message when verifying an inline-signed message,
unless you tell it not to. This patch avoids an overwhelmingly large
build log when handling these large files.

See https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/issues/149
---
 src/tests/cli_tests.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tests/cli_tests.py b/src/tests/cli_tests.py
index 4e39def..b1ea23f 100755
--- a/src/tests/cli_tests.py
+++ b/src/tests/cli_tests.py
@@ -2461,7 +2461,7 @@ class Misc(unittest.TestCase):
         # Verifying large packet file with GnuPG
         kpath = path_for_gpg(data_path(PUBRING_5))
         dpath = path_for_gpg(data_path('test_large_packet/4g.bzip2.gpg'))
-        ret, _, _ = run_proc(GPG, ['--homedir', GPGHOME, '--no-default-keyring', '--keyring', kpath, '--verify', dpath])
+        ret, _, _ = run_proc(GPG, ['--homedir', GPGHOME, '--no-default-keyring', '--keyring', kpath, '--output', '/dev/null', '--verify', dpath])
         self.assertEqual(ret, 0, 'large packet verification failed')
 
     def test_partial_length_signature(self):
@@ -2488,7 +2488,7 @@ class Misc(unittest.TestCase):
         # Verifying message having largest possible partial packet with GnuPG
         kpath = path_for_gpg(data_path(PUBRING_5))
         mpath = path_for_gpg(data_path('test_partial_length/message.txt.partial-1g'))
-        ret, _, _ = run_proc(GPG, ['--homedir', GPGHOME, '--no-default-keyring', '--keyring', kpath, '--verify', mpath])
+        ret, _, _ = run_proc(GPG, ['--homedir', GPGHOME, '--no-default-keyring', '--keyring', kpath, '--output', '/dev/null', '--verify', mpath])
         self.assertEqual(ret, 0, 'message having largest possible partial packet verification failed')
 
     def test_rnp_single_export(self):