From e7de1cb8b05ebe6b679dad4d8439e248f2a2d31e Mon Sep 17 00:00:00 2001 From: s3lph <1375407-s3lph@users.noreply.gitlab.com> Date: Mon, 18 Apr 2022 22:12:27 +0200 Subject: [PATCH] Fix full test report --- test/report.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/report.py b/test/report.py index 43e6129..94480d9 100755 --- a/test/report.py +++ b/test/report.py @@ -128,14 +128,14 @@ if msg2['Precedence'] != 'list': exit(1) gpg1 = subprocess.Popen(['/usr/bin/gpg2', '-d'], - stdin=msg1.get_payload()[1].get_payload(decode=True), + stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) -gpg1o, _ = gpg2.communicate() +gpg1o, _ = gpg2.communicate(msg1.get_payload()[1].get_payload(decode=True)) print(f'Key conflict message (decrypted):\n{gpg1o}') gpg2 = subprocess.Popen(['/usr/bin/gpg2', '-d'], - stdin=msg2.get_payload()[1].get_payload(decode=True), + stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) -gpg1o, _ = gpg2.communicate() +gpg1o, _ = gpg2.communicate(msg2.get_payload()[1].get_payload(decode=True)) print(f'Admin report message (decrypted):\n{gpg2o}') # Test conflict statefile