tests: Fix plain invocation of "make check".

* tests/openpgp/run-tests.scm: Check if *args* is null or not.

--

Fixes-commit: ba2f2085a9
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-05-02 14:03:57 +09:00
parent 602c37ac06
commit 792374edb6
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@
(string-append "--" variant))))
(define setup-use-keyboxd (setup* "use-keyboxd"))
(define use-keyboxd? (or (string=? "--use-keyboxd" (car *args*))
(define use-keyboxd? (or (and (not (null? *args*))
(string=? "--use-keyboxd" (car *args*)))
(string=? "keyboxd" (getenv "GPGSCM_TEST_VARIANT"))))
(define tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*))