mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests: Improve test.
* tests/openpgp/ssh-export.scm: Split output at any whitespace. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
1ead1ca818
commit
b49b1a87ac
@ -44,8 +44,8 @@
|
||||
(call-check `(,@GPG --yes --import ,(:file key)))
|
||||
|
||||
(let* ((result (call-check `(,@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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user