From 43bc7dd39c3d7891c9f35a8372a520f4afdc7875 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 11 Aug 2021 16:19:40 +0300 Subject: gnu: python-testtools: Honor #:tests? in check phase. * gnu/packages/check.scm (python-testtools)[arguments]: Adjust custom 'check phase to honor #:tests. --- gnu/packages/check.scm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index e5bd7da5b5..ff3eb8b891 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1430,11 +1430,13 @@ subprocess and see the output as well as any file modifications.") (inherit python-testtools-bootstrap) (name "python-testtools") (arguments - `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "python" "-m" "testtools.run" - "testtools.tests.test_suite")))))) + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "testtools.run" + "testtools.tests.test_suite"))))))) (propagated-inputs `(("python-extras" ,python-extras) ("python-fixtures" ,python-fixtures) -- cgit 1.4.1