[Pkg-gnupg-commit] [gnupg2] 76/185: tests: Improve test.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Aug 7 11:55:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit b49b1a87ac2695e3892fb001878da59fbc92fa37
Author: Justus Winter <justus at g10code.com>
Date: Mon Jun 26 12:51:28 2017 +0200
tests: Improve test.
* tests/openpgp/ssh-export.scm: Split output at any whitespace.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/openpgp/ssh-export.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/openpgp/ssh-export.scm b/tests/openpgp/ssh-export.scm
index 7f51447..136c6e0 100755
--- a/tests/openpgp/ssh-export.scm
+++ b/tests/openpgp/ssh-export.scm
@@ -44,8 +44,8 @@
(call-check `(, at GPG --yes --import ,(:file key)))
(let* ((result (call-check `(, at GPG --export-ssh-key ,(:fpr key))))
- ;; XXX: We should split at any whitespace here.
- (parts (string-split (string-trim char-whitespace? result) #\space)))
+ (parts (string-splitp (string-trim char-whitespace? result)
+ char-whitespace? -1)))
(assert (string=? (car parts) (:kind key)))
;; XXX: We should not use a short keyid as the comment when
;; exporting an ssh key.
--
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