mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
tests: Improve handling of Windows newlines.
* tests/gpgscm/lib.scm (string-split-newlines): New function. * tests/openpgp/default-key.scm: Use new function. * tests/openpgp/defs.scm: Likewise. * tests/openpgp/export.scm: Likewise. * tests/openpgp/import.scm: Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
11eac7eb2f
commit
1f76f8d8bc
5 changed files with 17 additions and 8 deletions
|
@ -91,7 +91,7 @@
|
|||
(define (gpg-with-colons args)
|
||||
(let ((s (call-popen `(,@GPG --with-colons ,@args) "")))
|
||||
(map (lambda (line) (string-split line #\:))
|
||||
(string-split s #\newline))))
|
||||
(string-split-newlines s))))
|
||||
|
||||
(define (get-config what)
|
||||
(string-split (caddar (gpg-with-colons `(--list-config ,what))) #\;))
|
||||
|
@ -133,8 +133,8 @@
|
|||
(lambda (line)
|
||||
(let ((p (string-split line #\:)))
|
||||
(list (string->number (cadr p)) (caddr p))))
|
||||
(string-split
|
||||
(call-popen `(,@GPG --with-colons ,@args) input) #\newline)))
|
||||
(string-split-newlines
|
||||
(call-popen `(,@GPG --with-colons ,@args) input))))
|
||||
|
||||
;; Dearmor a file.
|
||||
(define (dearmor source-name sink-name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue