[Pkg-gnupg-commit] [gnupg2] 137/292: tests, w32: Cope with Windows line endings.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit bf37916a23bd0929fc4a5f28c9a41f43c5a473f6
Author: Justus Winter <justus at g10code.com>
Date:   Thu Oct 20 16:41:18 2016 +0200

    tests,w32: Cope with Windows line endings.
    
    * tests/openpgp/issue2015.scm: Rstrip line before comparison.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/openpgp/issue2015.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/openpgp/issue2015.scm b/tests/openpgp/issue2015.scm
index 536cb8f..e51ece4 100755
--- a/tests/openpgp/issue2015.scm
+++ b/tests/openpgp/issue2015.scm
@@ -25,5 +25,6 @@
 
 (let ((response (call-popen `(,(tool 'gpg-connect-agent))
 			    "GET_PASSPHRASE --no-ask some_id X X X")))
-  (unless (string=? response "OK 736F6D655F70617373706872617365\n")
+  (unless (string=? (string-rtrim char-whitespace? response)
+		    "OK 736F6D655F70617373706872617365")
 	  (error "Could not retrieve passphrase from cache:" response)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list