From 792374edb67698d46f003f1548e674f0c6ef8d44 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 2 May 2022 14:03:57 +0900 Subject: [PATCH] tests: Fix plain invocation of "make check". * tests/openpgp/run-tests.scm: Check if *args* is null or not. -- Fixes-commit: ba2f2085a95be47a06ac6ba75a4c7def7c6599b2 Signed-off-by: NIIBE Yutaka --- tests/openpgp/run-tests.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/openpgp/run-tests.scm b/tests/openpgp/run-tests.scm index 76432b736..8f9435943 100644 --- a/tests/openpgp/run-tests.scm +++ b/tests/openpgp/run-tests.scm @@ -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*))