From e4fe344a5c64063f8201a637973aa366a3ded200 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 29 May 2022 16:29:36 +0300 Subject: gnu: nmap: Honor tests? flag. * gnu/packages/admin.scm (nmap)[arguments]: In custom 'check phase honor the #:tests? flag. --- gnu/packages/admin.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gnu/packages/admin.scm') diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index af75dee697..4e655551bd 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -3191,10 +3191,12 @@ (define (python-path dir) (,(python-path ndiff))))))) ;; These are the tests that do not require network access. (replace 'check - (lambda _ (invoke "make" - "check-nse" - "check-ndiff" - "check-dns")))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" + "check-nse" + "check-ndiff" + "check-dns"))))) ;; Nmap can't cope with out-of-source building. #:out-of-source? #f)) (home-page "https://nmap.org/") -- cgit v1.2.3