From 8dc928c2ca58e6116f6a35573bd6c97433f12400 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 17 May 2021 16:48:17 -0700 Subject: d/t/compile-and-tests.lisp: bind *PACKAGE* to CONSFIGURATOR/TESTS Signed-off-by: Sean Whitton --- debian/changelog | 3 +++ debian/tests/compile-and-tests.lisp | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 4bcf583..da3786e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ consfigurator (0.6.0-1) UNRELEASED; urgency=medium * New upstream release. * Add dep and build-dep on cl-closer-mop. + * d/tests/compile-and-tests.lisp: Switch the *PACKAGE* to + CONSFIGURATOR/TESTS when running tests so that there is a value + for *CONSFIG*. * d/rules: also clean *.fasl from tests/. -- Sean Whitton Tue, 13 Apr 2021 14:52:23 -0700 diff --git a/debian/tests/compile-and-tests.lisp b/debian/tests/compile-and-tests.lisp index de3eb6c..57fe51d 100644 --- a/debian/tests/compile-and-tests.lisp +++ b/debian/tests/compile-and-tests.lisp @@ -7,9 +7,11 @@ (asdf:*user-cache* (uiop:getenv "AUTOPKGTEST_TMP"))) (asdf:load-system "consfigurator/tests")) -;; we can't use ASDF:TEST-SYSTEM because its return value does not indicate -;; whether any tests failed -(unless (consfigurator/tests::do-tests) - (uiop:quit 2)) +;; We can't use ASDF:TEST-SYSTEM because its return value does not indicate +;; whether any tests failed. We have to switch the package back and forth as +;; CL-USER has no *CONSFIG*. +(let ((*package* (find-package :consfigurator/tests))) + (unless (consfigurator/tests::do-tests) + (uiop:quit 2))) (fresh-line) -- cgit v1.2.3