From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epnP0-0007L6-1x for guix-patches@gnu.org; Sat, 24 Feb 2018 22:55:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epnOw-00071H-VH for guix-patches@gnu.org; Sat, 24 Feb 2018 22:55:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epnOw-00070c-RN for guix-patches@gnu.org; Sat, 24 Feb 2018 22:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1epnOw-0000vE-HK for guix-patches@gnu.org; Sat, 24 Feb 2018 22:55:02 -0500 Subject: [bug#30601] [PATCH staging] gnu: ninja: Disable tests on armhf. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epnOg-0007Hy-MF for guix-patches@gnu.org; Sat, 24 Feb 2018 22:54:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epnOd-0006XX-JR for guix-patches@gnu.org; Sat, 24 Feb 2018 22:54:46 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34071) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1epnOd-0006Wf-Bn for guix-patches@gnu.org; Sat, 24 Feb 2018 22:54:43 -0500 From: Marius Bakke Date: Sun, 25 Feb 2018 04:54:38 +0100 Message-Id: <20180225035438.24171-1-mbakke@fastmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30601@debbugs.gnu.org * gnu/packages/ninja.scm (ninja)[arguments]: Set #:tests? #f on armhf. Adjust CHECK-PHASE accordingly. --- gnu/packages/ninja.scm | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/gnu/packages/ninja.scm b/gnu/packages/ninja.scm index adb236484..cff2ac38b 100644 --- a/gnu/packages/ninja.scm +++ b/gnu/packages/ninja.scm @@ -42,7 +42,15 @@ (build-system gnu-build-system) (native-inputs `(("python" ,python-2))) (arguments - '(#:phases + ;; FIXME: On armhf-linux, Subprocess.TestWithLots fails like this: + ;; *** Failure in src/subprocess_test.cc:241 + ;; ExitSuccess == procs[i]->Finish() + ;; See . + ;; Disable for now. + `(#:tests? (let ((system ,(or (%current-target-system) + (%current-system)))) + (not (string-prefix? "arm" system))) + #:phases (modify-phases %standard-phases (replace 'configure (lambda _ @@ -53,10 +61,12 @@ (lambda _ (invoke "./configure.py" "--bootstrap"))) (replace 'check - (lambda _ - (invoke "./configure.py") - (invoke "./ninja" "ninja_test") - (invoke "./ninja_test"))) + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (and (invoke "./configure.py") + (invoke "./ninja" "ninja_test") + (invoke "./ninja_test")) + (display "test suite not run\n")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) -- 2.16.2