1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

tests: Fix faked time in the TOFU test.

* tests/openpgp/tofu.scm (GPG): Fix time delta.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2017-01-02 16:37:02 +01:00
parent 5b6ebfb924
commit 6d06519833

View File

@ -29,7 +29,7 @@
(define (days->seconds days) (* days 24 60 60)) (define (days->seconds days) (* days 24 60 60))
;; Redefine GPG without --always-trust and a fixed time. ;; Redefine GPG without --always-trust and a fixed time.
(define GPG `(,(tool 'gpg) --no-permission-warning ,(faketime GPGTIME))) (define GPG `(,(tool 'gpg) --no-permission-warning ,(faketime 0)))
(define GNUPGHOME (getenv "GNUPGHOME")) (define GNUPGHOME (getenv "GNUPGHOME"))
(if (string=? "" GNUPGHOME) (if (string=? "" GNUPGHOME)
(fail "GNUPGHOME not set")) (fail "GNUPGHOME not set"))